diff options
author | Alan Orth <alan.orth@gmail.com> | 2020-05-17 22:42:56 +0300 |
---|---|---|
committer | Alan Orth <alan.orth@gmail.com> | 2020-05-17 22:42:56 +0300 |
commit | d72552cde3c805625643c7036a1b5133faefcf0c (patch) | |
tree | e4f9203dd64beb306d656fbfeac962d5d029ab9a | |
parent | 21aab8a79de329c30598e66766f5dd99f83ae697 (diff) |
layouts: Update Haven invocation
If the user has configured a cookie consent information URL we will
show it in the banner.
-rw-r--r-- | layouts/partials/cookie-consent.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/cookie-consent.html b/layouts/partials/cookie-consent.html index 69bfeb6..a686f87 100644 --- a/layouts/partials/cookie-consent.html +++ b/layouts/partials/cookie-consent.html @@ -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', |