From 172a35e27f8723b9ae92d64d2fe5805187fe9846 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Fri, 14 Oct 2022 15:02:18 -0700 Subject: [PATCH] Overhaul the blog list template --- layouts/blog/list.html | 25 ++++++++++--------------- static/styles/root.css | 2 +- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 3d3ae40..96b7928 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -3,23 +3,18 @@ {{ end }} {{ define "main" }} -{{ range .Pages.ByDate.GroupByDate "2006" }} -

{{ .Key }}

+
+ {{- range .Pages.ByDate.GroupByDate "2006" -}} +
{{ .Key | title }}
-{{ end }} + {{- end -}} +
{{ end }} {{ define "footer" }} diff --git a/static/styles/root.css b/static/styles/root.css index 3f52e78..f44b87a 100644 --- a/static/styles/root.css +++ b/static/styles/root.css @@ -454,7 +454,7 @@ ol ol { text-align: end; } -.post-list li h1 { +.post-list li .title { font-family: var(--font-family-body); grid-area: title; text-align: start;