forked from github.com/blag
added tags
This commit is contained in:
15
blag/templates/tag.html
Normal file
15
blag/templates/tag.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Tag {{ tag }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% for entry in archive %}
|
||||
|
||||
{% if entry.title %}
|
||||
<h1><a href="/{{entry.dst}}">{{entry.title}}</a></h1>
|
||||
{% endif %}
|
||||
|
||||
<p>Written on {{ entry.date.date() }}.</p>
|
||||
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
14
blag/templates/tags.html
Normal file
14
blag/templates/tags.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Tags{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Tags</h2>
|
||||
<ul>
|
||||
{% for tag, size in tags %}
|
||||
<li>
|
||||
<a href="{{ tag }}.html">{{ tag }} ({{ size }} articles)</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user