diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-10-06 22:11:52 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-10-06 22:11:52 +0200 |
| commit | c85d49fc9ee0b44762feef90031b0b1a5bfdac65 (patch) | |
| tree | 12c9deb1535f4fa1c8f56a4b1a953b536e728667 /layouts/partials/head/index.html | |
| parent | 36084155b83e02a87df6211965cf5bcf013f9c99 (diff) | |
Batch chart.js imports
Diffstat (limited to 'layouts/partials/head/index.html')
| -rw-r--r-- | layouts/partials/head/index.html | 4 |
1 files changed, 4 insertions, 0 deletions
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") -}} +<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> +{{- end -}} |
