You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a site's config declares the baseURL to be something like http://www.example.com/sub/directory/, the search.html partial doesn't take this into account when defining the var baseurl for Lunr to consume.
If a site's config declares the baseURL to be something like
http://www.example.com/sub/directory/
, thesearch.html
partial doesn't take this into account when defining thevar baseurl
for Lunr to consume.In this case (for a single language site), the
baseurl
var is"/"
, not"/sub/directory/"
I can fix this for a single language site by replacing
var baseurl = '{{ "" | relURL }}';
withvar baseurl = '{{ .Site.BaseURL }}';
This leaves two problems that I'm not comfortable enough with Hugo or Go templating to solve:
The text was updated successfully, but these errors were encountered: