From 54c773368e99fd1a21181d83e46d1a376bb9ecb9 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 26 Mar 2024 16:37:35 +0800 Subject: [PATCH] :sparkles: Feat: improve readme template --- layouts/index.readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.readme.md b/layouts/index.readme.md index d6b93294..48760fc4 100644 --- a/layouts/index.readme.md +++ b/layouts/index.readme.md @@ -5,7 +5,7 @@ {{- T "section.archiveCounter" (len $pages) }} {{ range $pages.GroupByPublishDate "2006" }} {{- if ne .Key "0001" -}} - {{- printf "\n## %v\n\n" .Key -}} + {{- printf "\n## %v\n\n%v\n\n" .Key (T "section.archiveCounter" .Pages.Len) -}} {{- range .Pages -}} {{- printf "- %v [%v](%v \"%v\")\n" (.PublishDate.Format "01-02") .Title .Permalink (.PublishDate.Format "2006-01-02 15:04:05") -}} {{- end -}}