summaryrefslogtreecommitdiff
path: root/generate_me.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2024-04-26 01:27:17 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2024-04-26 01:27:17 -0600
commit978591e66b80099cdaaf4fb5b38d34b5122b8f0d (patch)
treee1326fa8d61532af5008afd58abee76a3228b0c5 /generate_me.py
parent1256d0aa257fb8b77350c1f37bf66543cd62eccf (diff)
sort tags
Diffstat (limited to 'generate_me.py')
-rw-r--r--generate_me.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/generate_me.py b/generate_me.py
index 1c61f06..4e8ca58 100644
--- a/generate_me.py
+++ b/generate_me.py
@@ -96,6 +96,8 @@ for x in os.walk(src_folder):
"md", "html"
)
_post["tags"] = [x.strip() for x in _post["tags"].split(",")]
+ _post["tags"] = [x.replace(" ","-") for x in _post["tags"]]
+ _post["tags"].sort()
_post["image_link"] = "/images/opengraph" + fpath.replace(
src_folder, ""
).replace("md", "png")