Fixed empty tags key in front matter breaking search

This commit is contained in:
squidfunk 2022-06-22 17:16:54 +02:00
parent 0f1ca777e2
commit 4d117e5725
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class SearchIndex(BaseIndex):
entry = self._entries[index]
# Add document tags
if "tags" in page.meta:
if page.meta.get("tags"):
entry["tags"] = page.meta["tags"]
# Add document boost for search

View File

@ -45,7 +45,7 @@ class SearchIndex(BaseIndex):
entry = self._entries[index]
# Add document tags
if "tags" in page.meta:
if page.meta.get("tags"):
entry["tags"] = page.meta["tags"]
# Add document boost for search