From bd9e00b5698e5ae9b1178c0773045a6edd6d4bd5 Mon Sep 17 00:00:00 2001 From: Gianmarco Gargiulo Date: Wed, 18 Oct 2023 20:32:20 +0200 Subject: [PATCH] Enabled the homepage banner for an EU Chat Control 2.0 warning and changed some CSS for the banner --- themes/hugo-casper3/assets/scss/custom.scss | 15 +++++++++++++++ themes/hugo-casper3/layouts/index.html | 14 +++++++++++--- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/themes/hugo-casper3/assets/scss/custom.scss b/themes/hugo-casper3/assets/scss/custom.scss index b41e2a0..e50dd84 100644 --- a/themes/hugo-casper3/assets/scss/custom.scss +++ b/themes/hugo-casper3/assets/scss/custom.scss @@ -48,6 +48,7 @@ #banner { border-radius: 6px; background-color: #661a16; + color: #bdbdbd; padding: 20px; width: auto; height: auto; @@ -68,6 +69,20 @@ margin: auto; } +#banner b { + color: white; +} + +#banner h2 { + font-family: "Mustica Pro"; + color: white; + margin: 0.5em 0 0.5em 0; +} + +#banner blockquote, dl, ol, p, ul { + margin: 0.5em 0 0.5em 0; +} + /* ISSO CSS */ #isso-thread { diff --git a/themes/hugo-casper3/layouts/index.html b/themes/hugo-casper3/layouts/index.html index 8c6f475..022a224 100644 --- a/themes/hugo-casper3/layouts/index.html +++ b/themes/hugo-casper3/layouts/index.html @@ -28,9 +28,17 @@
- + {{ $pages := site.RegularPages }} {{ range $index, $element := $pages }}{{ if ne .Params.rss_ignore true }} {{- partial "post-card.html" (dict "context" . "index" $index "home" $.IsHome) -}}