Improve resilience of tags plugin

This commit is contained in:
squidfunk 2022-02-26 09:38:06 +01:00
parent 4f641cc0ee
commit 5acd0c3620
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class TagsPlugin(BasePlugin):
# Partially apply slugify function # Partially apply slugify function
self.slugify = lambda value: ( self.slugify = lambda value: (
toc["slugify"](value, toc["separator"]) toc["slugify"](str(value), toc["separator"])
) )
# Hack: 2nd pass for tags index page # Hack: 2nd pass for tags index page

View File

@ -51,7 +51,7 @@ class TagsPlugin(BasePlugin):
# Partially apply slugify function # Partially apply slugify function
self.slugify = lambda value: ( self.slugify = lambda value: (
toc["slugify"](value, toc["separator"]) toc["slugify"](str(value), toc["separator"])
) )
# Hack: 2nd pass for tags index page # Hack: 2nd pass for tags index page