mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-06-19 04:23:30 +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);
|
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,6 +1,15 @@
|
|||||||
{{- $ThemeVersion := "3.7.0" -}}
|
{{- $ThemeVersion := "3.7.0" -}}
|
||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
|
|
||||||
|
<section class="copyright">
|
||||||
|
©
|
||||||
|
{{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
|
||||||
|
{{ .Site.Params.footer.since }} -
|
||||||
|
{{ end }}
|
||||||
|
{{ now.Format "2006" }} {{ .Site.Title }}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="GDPRbanner">
|
||||||
{{ if .Site.Params.GDPRbanner.enabled }}
|
{{ if .Site.Params.GDPRbanner.enabled }}
|
||||||
{{ if not .Site.Params.GDPRbanner.onlytechnical }}
|
{{ if not .Site.Params.GDPRbanner.onlytechnical }}
|
||||||
<a class="manage-consent" href="#manage-consent">{{ T "footer.GDPRsettings.modify" }}</a>
|
<a class="manage-consent" href="#manage-consent">{{ T "footer.GDPRsettings.modify" }}</a>
|
||||||
@ -10,13 +19,6 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
{{ T "footer.GDPRsettings.nocookie" }}
|
{{ T "footer.GDPRsettings.nocookie" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<section class="copyright">
|
|
||||||
©
|
|
||||||
{{ if and (.Site.Params.footer.since) (ne .Site.Params.footer.since (int (now.Format "2006"))) }}
|
|
||||||
{{ .Site.Params.footer.since }} -
|
|
||||||
{{ end }}
|
|
||||||
{{ now.Format "2006" }} {{ .Site.Title }}
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="powerby">
|
<section class="powerby">
|
||||||
|
Loading…
Reference in New Issue
Block a user