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

Improve README.md for how to enable search #304

Open
stephenjayakar opened this issue Sep 15, 2024 · 0 comments
Open

Improve README.md for how to enable search #304

stephenjayakar opened this issue Sep 15, 2024 · 0 comments

Comments

@stephenjayakar
Copy link

I initially was going to make a post about how search doesn't work out of the box, and I couldn't figure out how to fix it. However, after looking at your actual website, I found this block that ended up fixing search.

[outputs]
  home = ["html", "searchIndex"]

[outputFormats]
  [outputFormats.searchIndex]
    mediaType = "application/json"
    baseName = "search-index"
    isPlainText = true
    notAlternative = true

I'm new to hugo so it's possible this was obvious to you, but it would be really helpful to add this to your README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant