From 6ca6066f54b2dfcb835d2eca43e76b37c55f3f4d Mon Sep 17 00:00:00 2001 From: OllyButters Date: Wed, 28 Aug 2024 22:19:54 +0100 Subject: [PATCH] only show tags if config set --- source/web_pages/common_html.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/source/web_pages/common_html.py b/source/web_pages/common_html.py index 2ddfd2ef7b6..84abeac9fdd 100644 --- a/source/web_pages/common_html.py +++ b/source/web_pages/common_html.py @@ -100,15 +100,16 @@ def draw_paper(this_paper, nav_path="./"): html += '-' # Tags - try: - if len(this_paper['clean']['zotero_tags']) > 0: - html += '
Tags: ' - html_tags = [] - for this_tag in this_paper['clean']['zotero_tags']: - html_tags.append('' + this_tag['tag'] + '') - html += ' | '.join(html_tags) - except Exception: - pass + if config.WEB_PAGE_SHOW_ZOTERO_TAGS: + try: + if len(this_paper['clean']['zotero_tags']) > 0: + html += '
Tags: ' + html_tags = [] + for this_tag in this_paper['clean']['zotero_tags']: + html_tags.append('' + this_tag['tag'] + '') + html += ' | '.join(html_tags) + except Exception: + pass html += ''