From 0790829ce30ecbd7cda6c017bc1888025bc57a5a Mon Sep 17 00:00:00 2001 From: rick Date: Fri, 2 Jul 2021 10:51:32 +0200 Subject: [PATCH] feat(tag): liens sur les previews + page regroupant les articles --- templates/macros.html | 2 +- templates/tag.html | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 templates/tag.html diff --git a/templates/macros.html b/templates/macros.html index 63c8b3a..973e2fd 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -19,7 +19,7 @@
{% for tag in art.tags %} - {{ tag }} + {{ tag }} {% endfor %}
{% endif %} diff --git a/templates/tag.html b/templates/tag.html new file mode 100644 index 0000000..f428101 --- /dev/null +++ b/templates/tag.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% import "macros.html" as macro %} +{% block content %} +
+

{{ tag.name }}

+
+
+ +{{ macro.listArticles(articles_page.object_list) }} +{{ macro.paginationArt(articles_previous_page, articles_next_page) }} +{% endblock content %}