Skip to content

Commit

Permalink
Fixed tags plugin crashing on numeric tags
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed May 24, 2024
1 parent 05af898 commit 1b346eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion material/plugins/tags/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/tags/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1b346eb

Please sign in to comment.