From 5e4d09a6d71f1b55282607b89239f7183ecf02c4 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 26 Feb 2024 00:15:50 +0100 Subject: Fixed PublishDate inconsistencies in my custom theme --- layouts/_default/list.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'layouts/_default') diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0367ee9..e4992fe 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -12,14 +12,23 @@ {{$.Scratch.Set "blog-pages" .Pages }} {{ end }} -{{ $pag := .Paginate (( $.Scratch.Get "blog-pages").GroupByDate "2006")}} +{{ $pag := .Paginate (( $.Scratch.Get "blog-pages").GroupByPublishDate "2006")}} {{ range $pag.PageGroups }} +{{ if ne .Key "0001" }}

{{ T "post_posts_in" }} {{ .Key }}

+{{ else }} +

Docs

+ +{{ end }} {{ end }} {{ partial "pagination.html" . }} {{ end }} -- cgit v1.2.3