diff --git a/material/plugins/tags/plugin.py b/material/plugins/tags/plugin.py index 875c713b2..2d05415b5 100644 --- a/material/plugins/tags/plugin.py +++ b/material/plugins/tags/plugin.py @@ -100,7 +100,7 @@ class TagsPlugin(BasePlugin[TagsConfig]): tags = page.meta.get("tags", []) if tags: for tag in tags: - self.tags[tag].append(page) + self.tags[str(tag)].append(page) # Inject tags into page (after search and before minification) def on_page_context(self, context, page, config, nav): diff --git a/src/plugins/tags/plugin.py b/src/plugins/tags/plugin.py index 875c713b2..2d05415b5 100644 --- a/src/plugins/tags/plugin.py +++ b/src/plugins/tags/plugin.py @@ -100,7 +100,7 @@ class TagsPlugin(BasePlugin[TagsConfig]): tags = page.meta.get("tags", []) if tags: for tag in tags: - self.tags[tag].append(page) + self.tags[str(tag)].append(page) # Inject tags into page (after search and before minification) def on_page_context(self, context, page, config, nav):