Hide "ATTACH" tags.
This commit is contained in:
parent
d004454192
commit
2d0f71bca1
@ -37,13 +37,14 @@ EXTENSIONS = [
|
|||||||
".org",
|
".org",
|
||||||
".org.txt",
|
".org.txt",
|
||||||
]
|
]
|
||||||
IMG_EXTENSIONS = [
|
IMG_EXTENSIONS = set([
|
||||||
"svg",
|
"svg",
|
||||||
"png",
|
"png",
|
||||||
"jpg",
|
"jpg",
|
||||||
"jpeg",
|
"jpeg",
|
||||||
"gif",
|
"gif",
|
||||||
]
|
])
|
||||||
|
SKIPPED_TAGS = set(['attach'])
|
||||||
|
|
||||||
WATCH = True
|
WATCH = True
|
||||||
if os.getenv('WATCH_AND_REBUILD', '1') == '0':
|
if os.getenv('WATCH_AND_REBUILD', '1') == '0':
|
||||||
@ -714,7 +715,8 @@ def render(headline, doc, graph, headlineLevel):
|
|||||||
|
|
||||||
tag_list = []
|
tag_list = []
|
||||||
for tag in headline.shallow_tags:
|
for tag in headline.shallow_tags:
|
||||||
tag_list.append(f'<span class="tag">{html.escape(tag)}</span>')
|
if tag.lower() not in SKIPPED_TAGS:
|
||||||
|
tag_list.append(f'<span class="tag">{html.escape(tag)}</span>')
|
||||||
tags = f'<span class="tags">{"".join(tag_list)}</span>'
|
tags = f'<span class="tags">{"".join(tag_list)}</span>'
|
||||||
|
|
||||||
display_state = 'expanded'
|
display_state = 'expanded'
|
||||||
|
Loading…
Reference in New Issue
Block a user