feat: Show tags in document view

This commit is contained in:
Dendy 2025-04-14 04:22:30 +02:00
parent 821ea0df16
commit 0c8873e576
1 changed files with 13 additions and 5 deletions

View File

@ -27,11 +27,19 @@
{{ _self.render_tree(tree) }}
</div>
<div class="p-3">
{% if contents is not null %}
{{ contents|markdown_to_html }}
{% else %}
<span class="text-muted">Empty</span>
{% endif %}
{% if contents is not null %}
{{ contents|markdown_to_html }}
{% else %}
<span class="text-muted">Empty</span>
{% endif %}
{% if metadata.tags is defined %}
<div class="d-flex flex-row gap-2 pt-2">
<div>tags:</div>
{% for tag in metadata.tags|default([]) %}
<div><a href="/search?q={{tag}}">{{ tag }}</a></div>
{% endfor %}
</div>
{% endif %}
</div>
</div>
<div class="bg-neutral-3 border-top p-1">