Update archives.html
This commit is contained in:
1 parent
22b513a8e8
commit
09341c7caf
1 file changed
+2
-1
@@ -4,7 +4,8 @@
|
|||||||
{{ $currentYear := 0 }}
|
{{ $currentYear := 0 }}
|
||||||
{{ $currentMonth := 0 }}
|
{{ $currentMonth := 0 }}
|
||||||
{{ range .Site.RegularPages }}
|
{{ range .Site.RegularPages }}
|
||||||
{{ if and (eq .Type "post") (ne .Params.status "hidden") }}
|
<!-- {{ if and (eq .Type "post") (ne .Params.status "hidden") }} -->
|
||||||
|
{{ if and (eq .Type "post") }}
|
||||||
{{ $year := .Date.Year }}
|
{{ $year := .Date.Year }}
|
||||||
{{ $month := .Date.Month }}
|
{{ $month := .Date.Month }}
|
||||||
{{ if ne $year $currentYear }}
|
{{ if ne $year $currentYear }}
|
||||||
|
|||||||
Reference in new issue
Block a user