feat(tag): liens sur les previews + page regroupant les articles

This commit is contained in:
rick 2021-07-02 10:51:32 +02:00
parent d56d217b24
commit 0790829ce3
Signed by: Rick
GPG key ID: 2B593F087240EE99
2 changed files with 12 additions and 1 deletions

View file

@ -19,7 +19,7 @@
<hr />
<div class="tags">
{% for tag in art.tags %}
<a href="">{{ tag }}</a>
<a href="{{ SITEURL }}/tag/{{ tag }}">{{ tag }}</a>
{% endfor %}
</div>
{% endif %}

11
templates/tag.html Normal file
View file

@ -0,0 +1,11 @@
{% extends "base.html" %}
{% import "macros.html" as macro %}
{% block content %}
<div id="cat-header">
<h1>{{ tag.name }}</h1>
<hr />
</div>
{{ macro.listArticles(articles_page.object_list) }}
{{ macro.paginationArt(articles_previous_page, articles_next_page) }}
{% endblock content %}