1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-17 17:57:04 +01:00

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:
Alan Orth 2020-05-17 22:42:56 +03:00
parent 21aab8a79d
commit d72552cde3
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

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