diff options
| author | Eltrac <hi@guhub.cn> | 2025-02-03 14:32:46 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-02-03 14:32:46 +0800 |
| commit | 95b7337f7db6b1a929dbb94a5acc59f8b41f3293 (patch) | |
| tree | ed654931419d22a713208c491144e409bf6eae47 /layouts/section | |
| parent | 11fe28d6ce85850794ae42e6c2328d6d47b629ec (diff) | |
feat(theme): add word count heatmap to archive page
Diffstat (limited to 'layouts/section')
| -rw-r--r-- | layouts/section/posts.html | 7 |
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"> |
