aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/head/index.html4
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 -}}