mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-23 23:21:00 +01:00
Fixed tags plugin crashing on numeric tags
This commit is contained in:
parent
05af8988c8
commit
1b346eb57b
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user