Skip to content

Commit 6487aa3

Browse files
committed
Config: Update params
1 parent d6b711e commit 6487aa3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

exampleSite/hugo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ maxAge = -1
2525
github_repo = "https://github.com/nginxinc/nginx-hugo-theme"
2626
github_subdir = "exampleSite"
2727
enable_last_modified = true
28-
disable_coveo = true
29-
disable_qualtrics = true
30-
coveo_search_redirect = "/search.html"
28+
coveo_search_redirect = "/search.html"
29+
[params.featureFlags]
30+
disable_coveo = true
31+
disable_qualtrics = true

layouts/partials/get-feature-flags.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- $featureName := . | default "" -}}
2-
{{- $param := (string (index site.Params $featureName)) | default "false" -}} <!-- Added default in case param does not exist, we should default to a value instead of nil -->
2+
{{- $param := (string (index site.Params.featureflags $featureName)) | default "false" -}} <!-- Added default in case param does not exist, we should default to a value instead of nil -->
33
{{- $result := false -}}
44

55
{{- if ne $featureName "" -}}

0 commit comments

Comments
 (0)