Closed Qian-Donglin closed 7 months ago
Hi!
do you see some error in browser console? what is your --baseURL
when you build the site?
I have the same issue. Here are my findings:
My website is hosted on github pages so the baseURL is of form: username.github.io/website
In order to retrieve assets the hugo page makes request to username.github.io/website
but for search date the page is making request to username.github.io/en.search-data.json
instead of username.github.io/website/en.search-data.json
See #571 and #505
Closing in favour of https://github.com/alex-shpak/hugo-book/pull/505
First of all, thank you for making this fantastic theme!
Now I use hugo-book theme, and suddenly I found I cannot use the search. My customization is only add katex for using $$ to represents the numerical formula on
hugo-book/layouts/partials/docs/html-head.html
. The added code is following.And I hit on this problem in both of my local and github pages. Are there someone knowing how to resolve it?