From 32a32b873ee48a10ac4c59fcf30bf5b08a7ff7d6 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Mon, 6 Feb 2023 14:04:45 +0000 Subject: [PATCH] sort tags in articles --- notes2web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes2web.py b/notes2web.py index b768357..2f09a80 100755 --- a/notes2web.py +++ b/notes2web.py @@ -237,7 +237,7 @@ def main(args): article = frontmatter.load(fp) article['tags'] += get_inherited_tags(filename, args.notes) - article['tags'] = list(set(article['tags'])) + article['tags'] = sorted(list(set(article['tags']))) article['filehistory'] = filehistory article['licenseFull'] = notes_license html = pypandoc.convert_text(frontmatter.dumps(article), 'html', format='md', extra_args=[