From 5acd0c3620eb2ff7788f3aafa8a63a3af1924f30 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 26 Feb 2022 09:38:06 +0100 Subject: [PATCH] Improve resilience of tags plugin --- material/plugins/tags/plugin.py | 2 +- src/plugins/tags/plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/material/plugins/tags/plugin.py b/material/plugins/tags/plugin.py index 42048ced9..233988292 100644 --- a/material/plugins/tags/plugin.py +++ b/material/plugins/tags/plugin.py @@ -51,7 +51,7 @@ class TagsPlugin(BasePlugin): # Partially apply slugify function self.slugify = lambda value: ( - toc["slugify"](value, toc["separator"]) + toc["slugify"](str(value), toc["separator"]) ) # Hack: 2nd pass for tags index page diff --git a/src/plugins/tags/plugin.py b/src/plugins/tags/plugin.py index 42048ced9..233988292 100644 --- a/src/plugins/tags/plugin.py +++ b/src/plugins/tags/plugin.py @@ -51,7 +51,7 @@ class TagsPlugin(BasePlugin): # Partially apply slugify function self.slugify = lambda value: ( - toc["slugify"](value, toc["separator"]) + toc["slugify"](str(value), toc["separator"]) ) # Hack: 2nd pass for tags index page