Skip to content
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

Add search to Hugo static sites with Lunr Questions #4

Open
hathawayj opened this issue Mar 8, 2021 · 2 comments
Open

Add search to Hugo static sites with Lunr Questions #4

hathawayj opened this issue Mar 8, 2021 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@hathawayj
Copy link

Is your feature request related to a problem? Please describe.

I appreciate your post on adding search to my Hugo blog. I have followed the directions but I can't seem to get the search to render results. I don't see a space to post questions on your blog so I am posting here.

Describe the solution you'd like

Help me with my inability to implement your example.

Describe alternatives you've considered
Give up and cry.

Additional context

My blog uses blogdown from R that builds using Hugo. I am using Netlify. I changed your search-index.html to search all pages with {{ range .Site.Pages }}.

I can see the search page on my blog but it doesn't return any results. I would appreciate any suggestions.

@victoriadrake
Copy link
Owner

Hi! I went to take a look but it seems you've switched things up by now. I haven't used blogdown myself so I bet there are some quirks there. If you have a public repo I can take a peek. I'll open this up for other help in the meantime!

@victoriadrake victoriadrake added the help wanted Extra attention is needed label Mar 20, 2021
@hathawayj
Copy link
Author

hathawayj commented Mar 22, 2021

Yeah. I went through at least three other guides that were much like yours. All ended in the same failure. I think you are on to something with the blogdown comment. I moved it all back to be based on your guide.

Search on my blogdown blog. I will look into blogdown issues as well. I also added you to my repo so that you can see my full directory.

Maybe this will help - yihui/hugo-prose#9.

https://github.com/hathawayj/mostmovedmover.com/invitations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants