From 4a7b334551582aa15ed1df35e5aeda9720f1e478 Mon Sep 17 00:00:00 2001 From: Livia Date: Tue, 8 Apr 2025 17:50:59 +0200 Subject: [PATCH] style "read more" buttons properly --- layouts/_default/summary-with-image.html | 29 ++++++++++++++++++++++++ static/style/style.css | 10 ++++++++ 2 files changed, 39 insertions(+) create mode 100644 layouts/_default/summary-with-image.html diff --git a/layouts/_default/summary-with-image.html b/layouts/_default/summary-with-image.html new file mode 100644 index 0000000..30ed222 --- /dev/null +++ b/layouts/_default/summary-with-image.html @@ -0,0 +1,29 @@ +{{ $featured_image := partial "func/GetFeaturedImage.html" . }} +
+
+
+ {{ if $featured_image }} + {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} +
+ + image from {{ .Title }} + +
+ {{ end }} +
+

+ + {{ .Title }} + +

+ + {{ with .Params.author | default .Site.Params.author }} +

By {{ . }}

+ {{- end -}} + {{ $.Param "read_more_copy" | default (i18n "readMore") }} +
+
+
+
diff --git a/static/style/style.css b/static/style/style.css index 09c6768..9eae3bf 100644 --- a/static/style/style.css +++ b/static/style/style.css @@ -23,6 +23,16 @@ th { color: #001b44; } +/* arcticle cards */ +/* read more button */ +a.ba.b--none.bg-blue.br2.color-inherit.dib.f7.hover-bg-navy.link.mt2.ph2.pv1 { + color: white; +} +/* headlines */ +a.color-inherit.dim.link:hover, .nested-links a:focus, .nested-links a:hover { + color: #001b44; +} + /* menu styles */ div.flex-l.items-center { text-shadow: 1px 1px 30px #000000;