mirror of
https://github.com/venthur/blag.git
synced 2025-11-25 20:52:43 +00:00
convert tags to lower case
This commit is contained in:
@@ -60,9 +60,10 @@ def convert_markdown(md, markdown):
|
|||||||
if 'date' in meta:
|
if 'date' in meta:
|
||||||
meta['date'] = datetime.fromisoformat(meta['date'])
|
meta['date'] = datetime.fromisoformat(meta['date'])
|
||||||
meta['date'] = meta['date'].astimezone()
|
meta['date'] = meta['date'].astimezone()
|
||||||
# tags: list[str]
|
# tags: list[str] and lower case
|
||||||
if 'tags' in meta:
|
if 'tags' in meta:
|
||||||
tags = meta['tags'].split(',')
|
tags = meta['tags'].split(',')
|
||||||
|
tags = [t.lower() for t in tags]
|
||||||
tags = [t.strip() for t in tags]
|
tags = [t.strip() for t in tags]
|
||||||
meta['tags'] = tags
|
meta['tags'] = tags
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user