修复置顶文章bug
This commit is contained in:
1 parent
598fd02885
commit
34dad82f75
2 files changed
+4
-4
No files matched your search
@@ -4,7 +4,6 @@
|
||||
{{ $currentYear := 0 }}
|
||||
{{ $currentMonth := 0 }}
|
||||
{{ range .Site.RegularPages }}
|
||||
<!-- {{ if and (eq .Type "post") (ne .Params.status "hidden") }} -->
|
||||
{{ if eq .Type "post" }}
|
||||
{{ $year := .Date.Year }}
|
||||
{{ $month := .Date.Month }}
|
||||
@@ -27,6 +26,7 @@
|
||||
<h3 class="diy-h3" uk-scrollspy="cls: uk-animation-slide-bottom-small; repeat: false" data-toggle="collapse"
|
||||
data-target="#collapse{{ $year }}{{ printf "%02d" $month }}" aria-expanded="false"
|
||||
aria-controls="collapse{{ $year }}{{ printf "%02d" $month }}">
|
||||
|
||||
{{ $month | printf "%02d" }}月
|
||||
</h3>
|
||||
<div class="collapse" id="collapse{{ $year }}{{ printf "%02d" $month }}"
|
||||
|
||||
Reference in new issue
Block a user