Skip to content

Commit f533f37

Browse files
committed
Partial: Coerce param into string from bool/string-bool
1 parent beae5d6 commit f533f37

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

layouts/partials/get-feature-flags.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{{- $featureName := .featureName | default "" -}}
2-
{{- $param := index .Site.Params $featureName -}}
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 -->
33
{{- $result := false -}}
44

55
{{- if ne $featureName "" -}}
6-
{{- if not (or (eq $param true) (eq $param "true")) -}}
6+
{{- if not (eq $param "true") -}}
77
{{- $result = true -}}
88
{{- end -}}
99
{{- end -}}

layouts/partials/meta.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
https://cdn.bizible.com/xdc.js
5757
https://f5networksglobalprod.122.2o7.net/
5858
https://f5networksnginxdocs.122.2o7.net/
59-
{{ if $qualtricsDisabled }} https://*.siteintercept.qualtrics.com/SIE/?Q_ZID=* {{ end }}
60-
{{ if $qualtricsDisabled }} https://siteintercept.qualtrics.com/ {{ end }}
59+
{{ if $qualtricsEnabled }} https://*.siteintercept.qualtrics.com/SIE/?Q_ZID=* {{ end }}
60+
{{ if $qualtricsEnabled }} https://siteintercept.qualtrics.com/ {{ end }}
6161
{{ if in .Params.doctypes "devportal" }} 'unsafe-eval' {{end}};
6262
worker-src 'self' blob:">
6363
{{/* end */}}

0 commit comments

Comments
 (0)