From 1aa8fd00b42fd7cc503a646e9c5bdd9a0a2a055e Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Wed, 17 May 2023 21:15:23 -0700 Subject: [PATCH] Add tag-summary override --- blog/layouts/_default/terms.html | 2 +- blog/layouts/partials/tag-summary.html | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 blog/layouts/partials/tag-summary.html diff --git a/blog/layouts/_default/terms.html b/blog/layouts/_default/terms.html index e448fca..a69beb0 100644 --- a/blog/layouts/_default/terms.html +++ b/blog/layouts/_default/terms.html @@ -14,7 +14,7 @@ {{ range $value.Pages }} - {{ partial "summary.html" . }} + {{ partial "tag-summary.html" . }} {{ end }} {{ end }} diff --git a/blog/layouts/partials/tag-summary.html b/blog/layouts/partials/tag-summary.html new file mode 100644 index 0000000..2d605cb --- /dev/null +++ b/blog/layouts/partials/tag-summary.html @@ -0,0 +1,17 @@ +{{/* + I don't want to _fully_ override the "summary.html" partial that exists in the theme, in case it's used anywhere else - + but this different summary allows me to make the summaries of articles in the tags page a bit more compact. +*/}} +
+
+ {{ humanize .Section }} +

+ + {{ .Title }} + +

+ +
+