-
-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search not working - seeking help #165
Comments
Hi @lbrent2k, did you find a solution to this? I also can't make search work. |
When I added content to blog I did get search results. I don't know if search is supposed to only be for blog though. |
Ok I fixed it on my end. My issue was that I was being sent to the template page when pressed the search results. #161 My config was fine, the problem was that on the baseUrl parameter at the beginning of the hugo file, I hadn't applied my site URL. and still had the template as base Url. Hope this works out for you. |
So far as I'm aware, the search is for blogs only. It may also work for images, but I don't use them and I don't think they have tags which would make them searchable. |
The index.json file in public is empty.
index.json in layouts/_default is:
{{- $.Scratch.Add "index" slice -}}
{{- range .Site.RegularPages -}}
{{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}
I run hugo server --config config/default/config.yaml --disableFastRender --logLevel debug and aside from search everything works great.
The text was updated successfully, but these errors were encountered: