I use Hugo with Geekdocs to run a medium sized technical documentation. The site is not connected to the public internet. The structure is a tree of markdown files in the content directory.
What I look for
Geekdoc has a search feature for the whole web site. However, I’d like to have a (seperate) search bar which only searches the currently open section (section is the name for a sub-folder in Hugo). The looks I imagine would be similar to Docsy. This forum has the same feature, I just noticed.
How can I achieve that?
What I tried until now
My idea was to include fastsearch and configure it the way I like. Fastsearch is up and running. Now, I’m not sure how to proceed.
The first try was to edit the template for
index.json to only include the current folder. But I’m suspecting this to be a wrong approach, because the file is a static file, if I understand correctly.