feat: Show note tags.
This commit is contained in:
parent
2a90ea8a26
commit
856ae09b16
2 changed files with 22 additions and 0 deletions
|
@ -393,6 +393,11 @@ def render(headline, doc, headlineLevel):
|
|||
else:
|
||||
todo_state = "done"
|
||||
|
||||
tag_list = []
|
||||
for tag in headline.shallow_tags:
|
||||
tag_list.append(f'<span class="tag">{html.escape(tag)}</span>')
|
||||
tags = f'<span class="tags">{"".join(tag_list)}</span>'
|
||||
|
||||
# display_state = 'collapsed'
|
||||
# if headlineLevel < MIN_HIDDEN_HEADLINE_LEVEL:
|
||||
# display_state = 'expanded'
|
||||
|
@ -405,6 +410,7 @@ def render(headline, doc, headlineLevel):
|
|||
<a href=\"javascript:toggle_expand('{html.escape(headline.id)}')\">
|
||||
{render_inline(headline.title, render_tag)}
|
||||
</a>
|
||||
{tags}
|
||||
</h1>
|
||||
<div class='contents'>
|
||||
{''.join(content)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue