Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alanorth/hugo-theme-bootstrap4-blog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Orth <alan.orth@gmail.com>2020-05-17 22:42:56 +0300
committerAlan Orth <alan.orth@gmail.com>2020-05-17 22:42:56 +0300
commitd72552cde3c805625643c7036a1b5133faefcf0c (patch)
treee4f9203dd64beb306d656fbfeac962d5d029ab9a
parent21aab8a79de329c30598e66766f5dd99f83ae697 (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.html4
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',