layouts: Update Haven invocation
If the user has configured a cookie consent information URL we will show it in the banner.
This commit is contained in:
parent
21aab8a79d
commit
d72552cde3
|
@ -4,7 +4,9 @@
|
||||||
<script>
|
<script>
|
||||||
Haven.create({
|
Haven.create({
|
||||||
notification: {
|
notification: {
|
||||||
policyUrl: "{{ .Site.Params.cookie_consent_info_url | absURL }}",
|
{{ with .Site.Params.cookie_consent_info_url | absURL -}}
|
||||||
|
policyUrl: {{ . }},
|
||||||
|
{{- end }}
|
||||||
styles: {
|
styles: {
|
||||||
background: '#428bca',
|
background: '#428bca',
|
||||||
textColor: '#ffffff',
|
textColor: '#ffffff',
|
||||||
|
|
Loading…
Reference in New Issue