On Tue, 22 May 2018 at 06:27, J C <
9tr...@gmail.com> wrote:
> Okay, I've tried using the new config.
> Need help with 2 things.
> 1) The SEARCH_FORM references "/search/", where do I put the search.html
file? If I put it at root, "nikola build" doesn't pick it up. I put it in
/pages/search/ and update SEARCH_FROM to "/pages/search.", it works, but is
it supposed to work that way?
You can set SEARCH_FORM to "/pages/search". You can also change PAGES to
put pages in the root instead of /pages/.
> 2) The search is somewhat hit and miss, how does it index? And I realized
that sometimes, it manages to find the link, it shows up shortly and then
it kind of self-refreshes and the search result is gone. Has it got to do
with the browser cache?
Hard to tell without details, but sounds like it’s this:
On Tue, 22 May 2018 at 06:35, J C <
9tr...@gmail.com> wrote:
> One more thing, once I do a search, when it refreshes the result page,
the search box has the search term with a "/" appended to it, is it normal?
It’s a glitch in `nikola serve`. Fixed in the v8 series and wouldn’t occur
with a real web server.
https://github.com/getnikola/nikola/issues/3000