Paginator on the index page has been moved into .container[role="main"] so that it is there along with the content it is paginating. Otherwise search would replace the contents but leave the paginator.
Fixed scrolling to an element with id attribute (either via #anchor or via scrollIntoView()). Part of the search results would be hidden below the header otherwise.
This adds static search functionality based on lunr, roughly along the lines of https://palant.info/2020/06/04/the-easier-way-to-use-lunr-search-with-hugo/. Translations have only been added for English and German, not any of the other languages.
A few changes along the way:
.container[role="main"]
so that it is there along with the content it is paginating. Otherwise search would replace the contents but leave the paginator.id
attribute (either via#anchor
or viascrollIntoView()
). Part of the search results would be hidden below the header otherwise.