1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2025-01-18 08:54:46 +01:00

Fixed numeric tags breaking search

This commit is contained in:
squidfunk 2024-11-25 18:23:53 +01:00
parent 6288b26b90
commit d468344751
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ class SearchIndex:
entry["tags"] = []
for name in tags:
if name and isinstance(name, (str, int, float, bool)):
entry["tags"].append(name)
entry["tags"].append(str(name))
# Set document boost
search = page.meta.get("search") or {}

View File

@ -215,7 +215,7 @@ class SearchIndex:
entry["tags"] = []
for name in tags:
if name and isinstance(name, (str, int, float, bool)):
entry["tags"].append(name)
entry["tags"].append(str(name))
# Set document boost
search = page.meta.get("search") or {}