hidden:隐藏若干文章

This commit is contained in:
Vaica committed 2026-01-20 23:43:45 +08:00
1 parent c6adb1693f
commit a7962d4762
95 files changed
+133 -74

No files matched your search

+35 -37
View File
@@ -3,50 +3,48 @@
<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 }}
{{ if eq .Type "post" }}
{{ $year := .Date.Year }}
{{ $month := .Date.Month }}
{{ if ne $year $currentYear }}
{{ if ne $currentYear 0 }}
</div> <!-- Close previous year -->
{{ end }}
<div class="link-title a-title">
<span>{{ $year }}</span>
</div>
{{ $currentYear = $year }}
{{ $currentMonth = 0 }}
{{/* 过滤文章:类型为 post 且 status 不为 hidden */}}
{{ $pages := where (where .Site.RegularPages "Type" "post") "Params.status" "ne" "hidden" }}
{{ range $pages }}
{{ $year := .Date.Year }}
{{ $month := .Date.Month }}
{{ if ne $year $currentYear }}
{{ if ne $currentYear 0 }}
</div> {{/* Close last month of previous year */}}
{{ end }}
{{ if ne $month $currentMonth }}
{{ if ne $currentMonth 0 }}
</div> <!-- Close previous month -->
{{ end }}
<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="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" href="{{ .Permalink }}">{{ .Title }}</a>
</li>
<div class="link-title a-title">
<span>{{ $year }}</span>
</div>
{{ $currentYear = $year }}
{{ $currentMonth = 0 }}
{{ end }}
{{ if ne $month $currentMonth }}
{{ if ne $currentMonth 0 }}
</div> <!-- Close previous month -->
{{ end }}
<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="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" href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
{{ if ne $currentMonth 0 }}
</div> <!-- Close last month -->
{{ end }}
{{ if ne $currentYear 0 }}
</div> <!-- Close last year -->
{{ end }}
</div>
</div>
{{ end }}
+6 -1
View File
@@ -22,6 +22,7 @@
--text-highlight-color: #696565;
--frame-dark-color: #1f2933;
--frame-color: #eee;
--artalk-editer-color: #bac6d3;
--erji-color: #666;
--sanji-color: #999;
--bankuai-color: #f6f6f6;
@@ -2411,6 +2412,10 @@ img[atk-emoticon] {
color: #999
}
.artalk .atk-main-editor {
border: 1px solid var(--artalk-editer-color)!important
}
@media(prefers-color-scheme: dark) {
.atk-content p {
color:var(--text-content-dark-color)!important
@@ -2468,7 +2473,7 @@ img[atk-emoticon] {
.artalk .atk-item.atk-nick a,
.atk-item.atk-nick a {
color: #666!important
color: #999!important
}
.atk-main-editor>.atk-bottom .atk-state-btn {