From 4be35aebe89211fe64471a2aa04329a54f318635 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Thu, 18 Jan 2024 22:08:45 -0600 Subject: [PATCH] additional formatting of archives partial --- layouts/partials/archive.html | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/layouts/partials/archive.html b/layouts/partials/archive.html index 0bd5bfb..02d0ca1 100644 --- a/layouts/partials/archive.html +++ b/layouts/partials/archive.html @@ -6,8 +6,9 @@ {{ if .IsHome }}

{{ site.Params.indexTitle | markdownify }}

{{ else }} -

{{ .Title | markdownify }}{{ if eq .Kind "term" }}  

{{ end }} -{{ end }} +

{{ .Title | markdownify }}{{ if eq .Kind "term" }}  

+ {{ with .Description }}{{ . }}
{{ else }}
{{ end }} +{{ end }}{{ end }} {{ .Content }} @@ -24,8 +25,21 @@ {{- end }} {{- else }} - {{- range .Pages }} - {{ .Title | markdownify }}
+ {{- range .Pages.ByDate.Reverse }} + {{- $postDate := .Date.Format "2006-01-02" }} + {{- $updateDate := .Lastmod.Format "2006-01-02" }} +
+
+

{{ .Title | markdownify }}

+ +
+
+ {{ .Description }} +
+
+
{{ end }} {{- end }} {{- else }} @@ -39,11 +53,10 @@ ["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}]

-
{{ .Summary }}
-
+
{{- end }} {{- template "_internal/pagination.html" . }}