layouts: Fix error in Haven invocation

This commit is contained in:
Alan Orth 2020-05-17 22:45:23 +03:00
parent d72552cde3
commit ef714f2192
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@
<script>
Haven.create({
notification: {
{{ with .Site.Params.cookie_consent_info_url | absURL -}}
policyUrl: {{ . }},
{{ with .Site.Params.cookie_consent_info_url -}}
policyUrl: {{ . | absURL }},
{{- end }}
styles: {
background: '#428bca',