From 0c8873e576a58432bf5d277ab1e89d6f89c330c4 Mon Sep 17 00:00:00 2001 From: Dendy Faist Date: Mon, 14 Apr 2025 04:22:30 +0200 Subject: [PATCH] feat: Show tags in document view --- templates/main/index.html.twig | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/templates/main/index.html.twig b/templates/main/index.html.twig index 93c4c43..0803739 100644 --- a/templates/main/index.html.twig +++ b/templates/main/index.html.twig @@ -27,11 +27,19 @@ {{ _self.render_tree(tree) }}
- {% if contents is not null %} - {{ contents|markdown_to_html }} - {% else %} - Empty - {% endif %} + {% if contents is not null %} + {{ contents|markdown_to_html }} + {% else %} + Empty + {% endif %} + {% if metadata.tags is defined %} +
+
tags:
+ {% for tag in metadata.tags|default([]) %} +
{{ tag }}
+ {% endfor %} +
+ {% endif %}