feat: Show tags in document view
This commit is contained in:
parent
821ea0df16
commit
0c8873e576
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue