From 81b0b0c80905931a1cf3c8e15a784e471928e63e Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 20 Sep 2020 17:00:45 +0530 Subject: archives : improvements --- layouts/_default/archives.html | 59 +++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 29 deletions(-) (limited to 'layouts/_default') diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index aa419ea..d6753e9 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -1,38 +1,39 @@ {{ define "main" }} -
- - {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} - {{ range $pages.GroupByPublishDate "2006" }} - {{ if ne .Key "0001" }} -
-

{{ replace .Key "0001" "" }}

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

{{ .Key }}

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

- {{ .Title | markdownify }} -

-
- {{- if or .Params.author .Site.Params.author }}{{- .Params.author | default .Site.Params.author }} · - {{ end }} - {{ if $.Site.Params.ShowReadingTime }}{{ .ReadingTime }}{{ i18n "read_time" | default "min read" }} - · {{ end }} - {{- .Date.Format "January 2, 2006" -}} -
- + +{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} +{{ range $pages.GroupByPublishDate "2006" }} +{{ if ne .Key "0001" }} +
+

{{ replace .Key "0001" "" }}

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

{{ .Key }}

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

+ {{ .Title | markdownify }} +

+
+ {{- if or .Params.author .Site.Params.author }}{{- .Params.author | default .Site.Params.author }} · + {{ end }} + {{ if $.Site.Params.ShowReadingTime }}{{ .ReadingTime }}{{ i18n "read_time" | default "min read" }} + · {{ end }} + {{- .Date.Format "January 2, 2006" -}}
- {{ end }} - {{ end }} +
+ {{ end }} + {{ end }}
- {{ end }}
{{ end }} - {{ end }}
+{{ end }} +{{ end }} + {{ end }}{{/* end main */}} \ No newline at end of file -- cgit v1.2.3