From 33e48f98920c60ec80ca8b34191caf6c74803cf5 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Wed, 1 May 2024 13:56:39 +0530 Subject: [PATCH] Add anchor link to archive layout headers --- layouts/_default/archives.html | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index b38e39a..eea3fc8 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -36,12 +36,21 @@ {{- range $pages.GroupByPublishDate "2006" }} {{- if ne .Key "0001" }}
-

- {{- replace .Key "0001" "" }}  {{ len .Pages }} + {{- $year := replace .Key "0001" "" }} +

+ + {{- $year -}} + +  {{ len .Pages }}

{{- range .Pages.GroupByDate "January" }}
-

{{- .Key }}  {{ len .Pages }}

+

+ + {{- .Key -}} + +  {{ len .Pages }} +

{{- range .Pages }} {{- if eq .Kind "page" }}