diff options
| author | Eltrac <hi@guhub.cn> | 2025-06-27 22:57:30 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-06-27 22:57:30 +0800 |
| commit | c228d56e05461bd8bd9383c8d8a07df711f2703d (patch) | |
| tree | bea1a7bc1efd9ebd96343b2f40eee4ffeb602f78 /layouts/partials | |
| parent | d42c947d8c6b111e65f9780576ffa08921d44a40 (diff) | |
fix: misplaced sun and moon icon in stats page
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/components/publish-time-chart.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/partials/components/publish-time-chart.html b/layouts/partials/components/publish-time-chart.html index f6a534df..45de208c 100644 --- a/layouts/partials/components/publish-time-chart.html +++ b/layouts/partials/components/publish-time-chart.html @@ -151,7 +151,7 @@ <div class="time-chart-container"> <div class="time-chart-wrapper"> - <div class="time-icon">🌙</div> + <div class="time-icon">☀️</div> <div class="time-chart-bar invert-if-dark"> {{ range $fuzzyTimes }} {{ $count := index $timeCounts .label }} @@ -166,7 +166,7 @@ {{ end }} {{ end }} {{ end }} - + {{/* 深夜时间段 */}} {{ $lateNightCount := index $timeCounts "深夜" }} {{ if gt $total 0 }} @@ -180,9 +180,9 @@ {{ end }} {{ end }} </div> - <div class="time-icon">☀️</div> + <div class="time-icon">🌙</div> </div> - + <div class="time-counts"> {{ range $fuzzyTimes }} {{ $count := index $timeCounts .label }} @@ -193,7 +193,7 @@ </div> {{ end }} {{ end }} - + {{ $lateNightCount := index $timeCounts "深夜" }} {{ if gt $lateNightCount 0 }} {{ $percentage := div (mul $lateNightCount 100.0) $total }} @@ -202,4 +202,4 @@ </div> {{ end }} </div> -</div>
\ No newline at end of file +</div> |
