mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-25 10:29:45 +01:00
archives: add posts count for each yr and month
* misc(css): rm unused
This commit is contained in:
parent
d46c0ed82d
commit
94070f4cd9
@ -9,12 +9,8 @@
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.archive-year-header:not(:last-of-type) {
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.archive-year:not(:last-of-type) {
|
||||
border-bottom: 1px solid var(--border);
|
||||
border-bottom: 2px solid var(--border);
|
||||
}
|
||||
|
||||
.archive-month {
|
||||
@ -48,6 +44,11 @@
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.archive-count {
|
||||
color: var(--secondary);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@media (max-width: 800px) {
|
||||
.archive-month {
|
||||
flex-direction: column;
|
||||
|
@ -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" }}
|
||||
|
Loading…
Reference in New Issue
Block a user