diff --git a/material/plugins/search/plugin.py b/material/plugins/search/plugin.py index adb3d071f..b3413f3ee 100644 --- a/material/plugins/search/plugin.py +++ b/material/plugins/search/plugin.py @@ -161,7 +161,7 @@ class SearchIndex: # if a page title was set via front matter, use that even though a h1 # might be given or the page name was specified in nav in mkdocs.yml if not section.title: - section.title = page.meta.get("title", page.title) + section.title = [str(page.meta.get("title", page.title))] # Compute title and text title = "".join(section.title).strip() diff --git a/src/plugins/search/plugin.py b/src/plugins/search/plugin.py index adb3d071f..b3413f3ee 100644 --- a/src/plugins/search/plugin.py +++ b/src/plugins/search/plugin.py @@ -161,7 +161,7 @@ class SearchIndex: # if a page title was set via front matter, use that even though a h1 # might be given or the page name was specified in nav in mkdocs.yml if not section.title: - section.title = page.meta.get("title", page.title) + section.title = [str(page.meta.get("title", page.title))] # Compute title and text title = "".join(section.title).strip()