From c85d49fc9ee0b44762feef90031b0b1a5bfdac65 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 6 Oct 2025 22:11:52 +0200 Subject: Batch chart.js imports --- layouts/partials/head/index.html | 4 ++++ layouts/shortcodes/chart.html | 1 - layouts/shortcodes/perf-chart.html | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'layouts') diff --git a/layouts/partials/head/index.html b/layouts/partials/head/index.html index eb096b8..a17582e 100644 --- a/layouts/partials/head/index.html +++ b/layouts/partials/head/index.html @@ -1,2 +1,6 @@ {{- partial "head/meta" . -}} {{- partial "head/styles" . -}} + +{{- if or (.HasShortcode "chart") (.HasShortcode "perf-chart") -}} + +{{- end -}} diff --git a/layouts/shortcodes/chart.html b/layouts/shortcodes/chart.html index 2198b63..196bdfa 100644 --- a/layouts/shortcodes/chart.html +++ b/layouts/shortcodes/chart.html @@ -24,7 +24,6 @@ -