diff --git a/material/plugins/tags/plugin.py b/material/plugins/tags/plugin.py index 875c713b2b4..2d05415b5ae 100644 --- a/material/plugins/tags/plugin.py +++ b/material/plugins/tags/plugin.py @@ -100,7 +100,7 @@ def on_page_markdown(self, markdown, page, config, files): 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 875c713b2b4..2d05415b5ae 100644 --- a/src/plugins/tags/plugin.py +++ b/src/plugins/tags/plugin.py @@ -100,7 +100,7 @@ def on_page_markdown(self, markdown, page, config, files): 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):