add cookie banner

This commit is contained in:
frascu
2022-08-04 18:13:16 +02:00
parent 30a2cc7a65
commit 4759ecd011
4 changed files with 137 additions and 0 deletions

View File

@ -163,7 +163,11 @@
{{- /* Misc */}}
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
{{- if eq .Site.Params.cookieEnabled true }}
{{- template "partials/templates/cookie-consent.html" . }}
{{- else }}
{{- template "_internal/google_analytics.html" . }}
{{- end -}}
{{- template "partials/templates/opengraph.html" . }}
{{- template "partials/templates/twitter_cards.html" . }}
{{- template "partials/templates/schema_json.html" . }}