From 0134242817a18072429cd059d778be5518bc35ec Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sun, 19 Mar 2023 09:44:27 -0400 Subject: [PATCH] invert condional logic on list pages so they do NOT show the date except for the blog list --- themes/hugo-xmin/layouts/_default/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/hugo-xmin/layouts/_default/list.html b/themes/hugo-xmin/layouts/_default/list.html index 6e341cc..bf692e1 100644 --- a/themes/hugo-xmin/layouts/_default/list.html +++ b/themes/hugo-xmin/layouts/_default/list.html @@ -11,16 +11,16 @@ {{ $pages := .Pages }} {{ $paginator := .Paginate (where $pages "Section" "!=" "") }} - {{ if (eq .Type "tips") }} + {{ if (eq .Type "posts") }} {{ range sort $paginator.Pages ".Title" }}
  • + {{ .Date.Format "2006/01/02" }} {{ .Title | markdownify }}
  • {{ end }} {{ else }} {{ range sort $paginator.Pages }}
  • - {{ .Date.Format "2006/01/02" }} {{ .Title | markdownify }}
  • {{ end }}