1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2025-07-01 20:07:25 +02:00

Optional use of cookie consent.

Setting the url in the configuration enables cookie consent.
This commit is contained in:
Frank Tegtmeyer
2016-11-03 10:05:00 +01:00
parent 5d3e273d49
commit d3617237bb
3 changed files with 35 additions and 2 deletions

View File

@ -16,7 +16,11 @@
<link href="{{ .Site.RSSLink }}" type="application/rss+xml" rel="alternate">
{{ template "_internal/google_analytics_async.html" . }}
</head>
{{ if .Site.Params.cookie_consent_info_url }}
{{ partial "cookie_consent.html" . }}
{{ end }}
</head>
<body>
@ -24,7 +28,7 @@
<div class="container">
<nav class="nav blog-nav">
<a class="nav-link {{ if .IsHome }}active{{ end }}" href="{{ .Site.BaseURL | absLangURL }}">{{ i18n "home" }}</a>
{{ range where .Site.Pages "Type" "!=" "post" }}
{{ range where .Site.Pages "Type" "==" "page" }}
<a class="nav-link" href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
</nav>