summaryrefslogtreecommitdiff
path: root/layouts/section/posts.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-03 14:32:46 +0800
committerEltrac <hi@guhub.cn>2025-02-03 14:32:46 +0800
commit95b7337f7db6b1a929dbb94a5acc59f8b41f3293 (patch)
treeed654931419d22a713208c491144e409bf6eae47 /layouts/section/posts.html
parent11fe28d6ce85850794ae42e6c2328d6d47b629ec (diff)
feat(theme): add word count heatmap to archive page
Diffstat (limited to 'layouts/section/posts.html')
-rw-r--r--layouts/section/posts.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/section/posts.html b/layouts/section/posts.html
index 3c2c862c..1f433ac9 100644
--- a/layouts/section/posts.html
+++ b/layouts/section/posts.html
@@ -3,6 +3,13 @@
{{ partial "header.html" . }}
<div id="posts-archive" class="posts-list">
+ <!-- Post Word-count Heatmap -->
+ <div id="cal-heatmap-container">
+ <div id="cal-heatmap"></div>
+ </div>
+ <script>initCalHeatmap();</script>
+
+ <!-- Post Archive List -->
{{ range (where site.RegularPages "Type" "in" site.Params.mainSections).GroupByDate "2006" -}}
<section class="posts-year-archive">
<h1 class="posts-year-title">