From a44436d2374775df7803cbde8401206fbd8cb4df Mon Sep 17 00:00:00 2001 From: kranurag78 <84301342+kranurag78@users.noreply.github.com> Date: Wed, 15 Mar 2023 18:21:12 +0530 Subject: [PATCH] page listing as per the year --- layouts/_default/list.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4a4b6f4..317fe91 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -6,9 +6,14 @@

{{ .Title }}

{{ end }}
- {{ range .Data.Pages }} - {{ partial "item.html" . }} + {{ range .Data.Pages.GroupByDate "2006" }} +

+ {{ .Key }} +

+ {{ range .Pages }} + {{ partial "item.html" . }} + {{ end }} {{ end }}
-{{ end }} \ No newline at end of file +{{ end }}