diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-29 15:54:39 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-29 16:42:23 +0530 |
| commit | 94070f4cd97f37884a6fa0ac45386787c92b4355 (patch) | |
| tree | ab7e0c5ad45220ae98ac23c3d5f213b6481dade5 /layouts/_default/archives.html | |
| parent | d46c0ed82d29f8d146acdfddc577fef9f351a8c4 (diff) | |
archives: add posts count for each yr and month
* misc(css): rm unused
Diffstat (limited to 'layouts/_default/archives.html')
| -rw-r--r-- | layouts/_default/archives.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index 9e32c76..ce0c153 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -8,10 +8,12 @@ {{- range $pages.GroupByPublishDate "2006" }} {{- if ne .Key "0001" }} <div class="archive-year"> - <h2 class="archive-year-header">{{- replace .Key "0001" "" }}</h2> + <h2 class="archive-year-header"> + {{- replace .Key "0001" "" }}<sup class="archive-count"> {{ len .Pages }}</sup> + </h2> {{- range .Pages.GroupByDate "January" }} <div class="archive-month"> - <h3 class="archive-month-header">{{- .Key }}</h3> + <h3 class="archive-month-header">{{- .Key }}<sup class="archive-count"> {{ len .Pages }}</h3> <div class="archive-posts"> {{- range .Pages }} {{- if eq .Kind "page" }} |
