Skip to content

Commit

Permalink
layouts: Update Haven invocation
Browse files Browse the repository at this point in the history
If the user has configured a cookie consent information URL we will
show it in the banner.
  • Loading branch information
alanorth committed May 17, 2020
1 parent 21aab8a commit d72552c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/partials/cookie-consent.html
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d72552c

Please sign in to comment.