{{ .Content }} diff --git a/layouts/summary.html b/layouts/summary.html index 4c4104b..f861c62 100644 --- a/layouts/summary.html +++ b/layouts/summary.html @@ -7,7 +7,7 @@ {{ partial "page-metadata/post-short.html" . }} - {{ partial "feature-figure.html" . }} + {{ partial "featured-media.html" . }} {{ with .Summary }}
From c02ceb2dc4d2260e4af5c51856788bc68fc8c17d Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Mon, 1 Sep 2025 01:37:26 -0500 Subject: [PATCH 5/6] Reorganize series page list and series summary card class names - Use namespaced class names to prevent accidental name collisions in the future - Clean up whatever the hell I was doing with the flex config on the outer series list. I have no clue why it's set up as a wrapping row, or what the border radius is for. It seems to look the same if I just make it a page-list that gets its gap overridden. - Remove page.series wrapper around the summary card render which was accidentally left in after 8eb343132c6b57f692f87a72a5aca1bc9c563d1b. --- assets/css/bobastyle.css | 12 +++--------- layouts/series/summary.html | 2 +- layouts/series/taxonomy.html | 6 ++---- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index bffccd9..1c37a4a 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -589,17 +589,11 @@ figcaption { /* Series list layout {{{ */ -.page-list.series { - display: flex; +.page-list--series { gap: 80px; - flex-flow: row wrap; - list-style: none; - color: var(--text-0); - padding: 8px; - border-radius: 16px; } -.page-list.series-inner { +.page-list--series-inner { gap: 10px; flex-direction: row; flex-flow: row wrap; @@ -608,7 +602,7 @@ figcaption { padding: 8px; border-radius: 16px; } -.page-list.series-inner > .summary-card { +.page-list--series-inner > .summary-card { flex: 1; min-width: 49%; } diff --git a/layouts/series/summary.html b/layouts/series/summary.html index bfd0044..a72a242 100644 --- a/layouts/series/summary.html +++ b/layouts/series/summary.html @@ -13,7 +13,7 @@
{{ end }} -
+
{{ range .Data.Pages.Reverse }} {{ .Render "summary" }} {{ end }} diff --git a/layouts/series/taxonomy.html b/layouts/series/taxonomy.html index d017b39..7855b80 100644 --- a/layouts/series/taxonomy.html +++ b/layouts/series/taxonomy.html @@ -10,12 +10,10 @@ {{ . }} {{ end }} -
+
{{ with .Paginator.Pages }} {{ range . }} -
- {{ .Render "summary" }} -
+ {{ .Render "summary" }} {{ end }} {{ else }}
From 9b2509c0d5f9cec51a4cb9633450dbf340d6a173 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Mon, 1 Sep 2025 01:43:01 -0500 Subject: [PATCH 6/6] Change "Read more" to "See posts" on author summary card I never noticed this; you can read more of an article, but it doesn't really make any sense to "Read more" on an author. --- i18n/en.yaml | 2 ++ layouts/authors/summary.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/i18n/en.yaml b/i18n/en.yaml index a483e10..8880d55 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -48,6 +48,8 @@ post_count: # Navigation read_more: other: "Read more" +see_posts: + other: "See posts" related_posts: other: "Related Posts" diff --git a/layouts/authors/summary.html b/layouts/authors/summary.html index 02603fa..69e9d33 100644 --- a/layouts/authors/summary.html +++ b/layouts/authors/summary.html @@ -13,6 +13,6 @@ {{ end }}