Search

  1. Zzo theme make search index for the search. So, in order to use the search, you need to add this config params to config.toml file.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
...
[outputs]
  page = ["HTML", "SearchIndex"]
  home = ["HTML", "RSS", "SearchIndex"]
  section = ["HTML", "RSS", "SearchIndex"]
  taxonomyTerm = ["HTML", "RSS", "SearchIndex"]
  taxonomy = ["HTML", "RSS", "SearchIndex"]

[outputFormats]
  [outputFormats.SearchIndex]
    mediaType = "application/json"
    baseName = "index"
    isPlainText = true
    notAlternative = true

These config params make search index on every page.

  1. We have an option to the search results rendering position.

    your params.toml file,

    ...
    searchResultPosition = "main" # side, main