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:
parent
6288b26b90
commit
d468344751
@ -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 {}
|
||||
|
@ -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 {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user