From 978591e66b80099cdaaf4fb5b38d34b5122b8f0d Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 26 Apr 2024 01:27:17 -0600 Subject: sort tags --- generate_me.py | 2 ++ 1 file changed, 2 insertions(+) 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") -- cgit v1.2.3