diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 8bc7b7b0..21e68bd2 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -25,4 +25,5 @@ maxAge = -1 github_repo = "https://github.com/nginxinc/nginx-hugo-theme" github_subdir = "exampleSite" enable_last_modified = true + disable_coveo = true coveo_search_redirect = "/search.html" \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 5b3ed850..0fb4555c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -12,9 +12,11 @@ {{ if ( not ( in .Site.Params.buildtype "package" ) ) }} - + {{ if not (or (eq .Site.Params.disable_coveo true) (eq .Site.Params.disable_coveo "true")) }} + + {{ end }}