summaryrefslogtreecommitdiff
path: root/layouts/section/posts.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-03 19:55:32 +0800
committerEltrac <hi@guhub.cn>2025-02-03 19:55:32 +0800
commit6267dd43a2910c8ae7257baaba5eacbf569518ab (patch)
tree7aa2554e6541be281e96f74c33c71e1bfec17f31 /layouts/section/posts.html
parent67383a3a076bd6c1fef57e7502c1c9809c0d4519 (diff)
refactor: encapsulate heatmap component
Diffstat (limited to 'layouts/section/posts.html')
-rw-r--r--layouts/section/posts.html7
1 files changed, 1 insertions, 6 deletions
diff --git a/layouts/section/posts.html b/layouts/section/posts.html
index 8dd142f7..ebc7d0cd 100644
--- a/layouts/section/posts.html
+++ b/layouts/section/posts.html
@@ -3,12 +3,7 @@
{{ 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>
-
+ {{ partial "components/heatmap.html" . }}
{{ partial "components/pagefind.html" . }}
<!-- Post Archive List -->