Tags are now functional again

This commit is contained in:
Clemens Geibel 2020-03-02 16:15:23 +01:00
parent a4690553b8
commit ae9c35dfe6
4 changed files with 17 additions and 4 deletions

View file

@ -35,3 +35,6 @@ html, body {
color: white; color: white;
} }
a.link-muted {
color: #6c757d;
}

View file

@ -14,7 +14,7 @@
<p class="text-muted"> <p class="text-muted">
Tags: Tags:
{% for tag in post.tags %} {% for tag in post.tags %}
{{tag.name}}{% if not forloop.last %}, {% endif %} <a class="link-muted" href="{{tag.uri}}">{{tag.name}}</a>{% if not forloop.last %}, {% endif %}
{% endfor %} {% endfor %}
</p> </p>
{% endif %} {% endif %}

View file

@ -0,0 +1,12 @@
<div id="posts-by-tag">
<div id="page-header">
<h1>Posts Tagged &quot;{{name}}&quot;</h1>
</div>
<ul>
{% for post in posts %}
<li>
<a href="{{post.uri}}">{{post.title}}</a>
</li>
{% endfor %}
</ul>
</div>

View file

@ -1,7 +1,5 @@
{% extends "/html/page-three-column.html" %} {% extends "/html/page-three-column.html" %}
{% block center %} {% block center %}
{% with tags=posts %} {% include "/html/includes/tagged-posts.inc" %}
{% include "/html/includes/post-tags.inc" %}
{% endwith %}
{% endblock %} {% endblock %}