sort tags in articles

This commit is contained in:
Akbar Rahman 2023-02-06 14:04:45 +00:00
parent 82e5c3e254
commit 32a32b873e
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

View File

@ -237,7 +237,7 @@ def main(args):
article = frontmatter.load(fp) article = frontmatter.load(fp)
article['tags'] += get_inherited_tags(filename, args.notes) 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['filehistory'] = filehistory
article['licenseFull'] = notes_license article['licenseFull'] = notes_license
html = pypandoc.convert_text(frontmatter.dumps(article), 'html', format='md', extra_args=[ html = pypandoc.convert_text(frontmatter.dumps(article), 'html', format='md', extra_args=[