From 7e4df08766d0f4101e1ec714ddaf59830f35bdf6 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 8 May 2026 17:55:53 +0200 Subject: fix: move contribution-graph script to baseof, remove from partial Partial caching prevented Scratch-based deduplication. Script now loaded once from baseof.html; JS guard prevents double-init. Co-Authored-By: Claude Sonnet 4.6 --- layouts/_default/baseof.html | 4 ++++ layouts/partials/contribution-graph.html | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index aa89a69..3736a9f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -133,5 +133,9 @@ {{ $tagCloudScript := resources.Get "js/tag-cloud-spiral.js" | minify }} + + + {{ $contribScript := resources.Get "js/contribution-graph.js" | minify }} + diff --git a/layouts/partials/contribution-graph.html b/layouts/partials/contribution-graph.html index dc95811..41cbc90 100644 --- a/layouts/partials/contribution-graph.html +++ b/layouts/partials/contribution-graph.html @@ -16,8 +16,3 @@ > -{{- if not ($page.Scratch.Get "contrib-graph-js-loaded") -}} - {{- $page.Scratch.Set "contrib-graph-js-loaded" true -}} - {{- $js := resources.Get "js/contribution-graph.js" | minify -}} - -{{- end -}} -- cgit v1.2.3