修复若干bug

This commit is contained in:
Vaica committed 2026-01-20 20:09:46 +08:00
1 parent 94855a49bf
commit 21fa47801b
14 files changed
+69 -130

No files matched your search

+5 -7
View File
@@ -1,6 +1,6 @@
{{ define "main" }}
<div id="pjax-container">
<div class="post-content" style="list-style-type: none;" uk-scrollspy="target: > .link-title,.diy-h3,li; cls: uk-animation-slide-bottom-small; delay: 0">
<div class="post-content" style="list-style-type: none;" uk-scrollspy="target: .link-title; cls: uk-animation-slide-left-small; delay: 50; repeat: true">
{{ $currentYear := 0 }}
{{ $currentMonth := 0 }}
{{ range .Site.RegularPages }}
@@ -12,7 +12,7 @@
{{ if ne $currentYear 0 }}
</div> <!-- Close previous year -->
{{ end }}
<div class="link-title a-title" uk-scrollspy="cls: uk-animation-slide-bottom-small; repeat: false">
<div class="link-title a-title">
<span>{{ $year }}</span>
</div>
{{ $currentYear = $year }}
@@ -23,21 +23,19 @@
{{ if ne $currentMonth 0 }}
</div> <!-- Close previous month -->
{{ end }}
<h3 class="diy-h3" uk-scrollspy="cls: uk-animation-slide-bottom-small; repeat: false" data-toggle="collapse"
<h3 class="diy-h3" data-toggle="collapse" uk-scrollspy="cls: uk-animation-fade; delay: 100"
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 }}"
uk-scrollspy="cls: uk-animation-slide-bottom-small; repeat: false">
<div class="collapse" id="collapse{{ $year }}{{ printf "%02d" $month }}" uk-scrollspy="target: > li; cls: uk-animation-slide-right-small; delay: 100">
{{ $currentMonth = $month }}
{{ end }}
<li data-date="{{ $year }}{{ printf "%02d" $month }}{{ .Date.Day }}">
<span class="articles_date_time">{{ .Date.Format "01/02" }}</span>
<a class="a-archives" uk-scrollspy="cls: uk-animation-slide-bottom-small; repeat: false"
href="{{ .Permalink }}">{{ .Title }}</a>
<a class="a-archives" href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
{{ end }}