Handle multiple blanks in tags

This commit is contained in:
Anders Englöf Ytterström 2025-07-02 20:11:36 +02:00
parent e8f131b973
commit 354842cbeb
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
.. title: {{summary.splitlines()[0]}} .. title: {{summary.splitlines()[0]}}
.. slug: {{id}} .. slug: {{id}}
.. date: {{date}} .. date: {{date}}
.. tags: {{",".join(tags).lower().replace("ø", "o").replace("ö", "o").replace("å", "a")}} .. tags: {{",".join(tags).lower().replace("ø", "o").replace("ö", "o").replace("å", "a").replace(" ", " ")}}
.. author: the-old-mayhem .. author: the-old-mayhem
.. link: https://the-old-mayhem.tumblr.com/ .. link: https://the-old-mayhem.tumblr.com/
.. description: .. description:

View file

@ -1,7 +1,7 @@
.. title: {{summary.splitlines()[0]}} .. title: {{summary.splitlines()[0]}}
.. slug: {{id}} .. slug: {{id}}
.. date: {{date}} .. date: {{date}}
.. tags: {{",".join(tags).lower().replace("ø", "o").replace("ö", "o").replace("å", "a")}} .. tags: {{",".join(tags).lower().replace("ø", "o").replace("ö", "o").replace("å", "a").replace(" ", " ")}}
.. author: the-old-mayhem .. author: the-old-mayhem
.. link: https://the-old-mayhem.tumblr.com/ .. link: https://the-old-mayhem.tumblr.com/
.. description: .. description:

View file

@ -1,7 +1,7 @@
.. title: {{summary.splitlines()[0]}} .. title: {{summary.splitlines()[0]}}
.. slug: {{id}} .. slug: {{id}}
.. date: {{date}} .. date: {{date}}
.. tags: {{",".join(tags).lower().replace("ø", "o").replace("ö", "o").replace("å", "a")}} .. tags: {{",".join(tags).lower().replace("ø", "o").replace("ö", "o").replace("å", "a").replace(" ", " ")}}
.. author: the-old-mayhem .. author: the-old-mayhem
.. link: https://the-old-mayhem.tumblr.com/ .. link: https://the-old-mayhem.tumblr.com/
.. description: .. description: