mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-06-18 20:13:31 +08:00
custom CSS for GDPR banner
This commit is contained in:
parent
1bda9df28e
commit
3e2dff5e45
@ -28,4 +28,14 @@ footer.site-footer {
|
||||
color: var(--body-text-color);
|
||||
}
|
||||
}
|
||||
|
||||
.GDPRbanner {
|
||||
color: var(--body-text-color);
|
||||
font-weight: normal;
|
||||
font-size: 1.2rem;
|
||||
|
||||
a {
|
||||
color: var(--body-text-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,16 +1,6 @@
|
||||
{{- $ThemeVersion := "3.7.0" -}}
|
||||
<footer class="site-footer">
|
||||
|
||||
{{ if .Site.Params.GDPRbanner.enabled }}
|
||||
{{ if not .Site.Params.GDPRbanner.onlytechnical }}
|
||||
<a class="manage-consent" href="#manage-consent">{{ T "footer.GDPRsettings.modify" }}</a>
|
||||
{{ else }}
|
||||
{{ T "footer.GDPRsettings.technical" }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ T "footer.GDPRsettings.nocookie" }}
|
||||
{{ end }}
|
||||
|
||||
<section class="copyright">
|
||||
©
|
||||
{{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
|
||||
@ -19,6 +9,18 @@
|
||||
{{ now.Format "2006" }} {{ .Site.Title }}
|
||||
</section>
|
||||
|
||||
<section class="GDPRbanner">
|
||||
{{ if .Site.Params.GDPRbanner.enabled }}
|
||||
{{ if not .Site.Params.GDPRbanner.onlytechnical }}
|
||||
<a class="manage-consent" href="#manage-consent">{{ T "footer.GDPRsettings.modify" }}</a>
|
||||
{{ else }}
|
||||
{{ T "footer.GDPRsettings.technical" }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ T "footer.GDPRsettings.nocookie" }}
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
<section class="powerby">
|
||||
{{ with .Site.Params.footer.customText }}
|
||||
{{ . | safeHTML }} <br/>
|
||||
|
Loading…
Reference in New Issue
Block a user