From a17b475a4bcf6fa087af21487970d4382a67a9ec Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Mon, 6 Feb 2023 12:14:13 +0000 Subject: [PATCH] fix duplicate tags on site pages --- notes2web.py | 1 + 1 file changed, 1 insertion(+) diff --git a/notes2web.py b/notes2web.py index 820b8b1..b768357 100755 --- a/notes2web.py +++ b/notes2web.py @@ -237,6 +237,7 @@ def main(args): article = frontmatter.load(fp) article['tags'] += get_inherited_tags(filename, args.notes) + article['tags'] = list(set(article['tags'])) article['filehistory'] = filehistory article['licenseFull'] = notes_license html = pypandoc.convert_text(frontmatter.dumps(article), 'html', format='md', extra_args=[