Add a page to list articles by tag

This commit is contained in:
Bat
2018-09-06 13:06:04 +01:00
parent a54d2e9d71
commit dd9c4a6a73
14 changed files with 105 additions and 7 deletions
+1 -1
View File
@@ -36,7 +36,7 @@
<p>{{ "This article is under the {{ license }} license." | _(license=article.post.license) }}</p>
<ul class="tags">
{% for tag in article.tags %}
<li>{{ tag.tag }}</li>
<li><a href="/tag/{{ tag.tag }}">{{ tag.tag }}</a></li>
{% endfor %}
</ul>
<div class="flex">
+17
View File
@@ -0,0 +1,17 @@
{% extends "base" %}
{% import "macros" as macros %}
{% block title %}
{{ 'Articles tagged "{{ tag }}"' | _(tag=tag.tag) }}
{% endblock title %}
{% block content %}
<h1>{{ 'Articles tagged "{{ tag }}"' | _(tag=tag.tag) }}</h1>
<div class="cards">
{% for article in articles %}
{{ macros::post_card(article=article) }}
{% endfor %}
</div>
{{ macros::paginate(page=page, total=n_pages) }}
{% endblock content %}