From 886abd21c8c5fc2e145462068ee48b1da9faf1da Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 22 Sep 2024 14:28:25 +0100 Subject: [PATCH] add chart shortcode that responds to selectable table --- layouts/partials/chart.html | 90 ++++++++++++++++++++++++++++++++++- layouts/shortcodes/chart.html | 10 +++- 2 files changed, 97 insertions(+), 3 deletions(-) diff --git a/layouts/partials/chart.html b/layouts/partials/chart.html index c663914..de3bcb3 100644 --- a/layouts/partials/chart.html +++ b/layouts/partials/chart.html @@ -2,7 +2,95 @@
- +
diff --git a/layouts/shortcodes/chart.html b/layouts/shortcodes/chart.html index 8023112..10c581a 100644 --- a/layouts/shortcodes/chart.html +++ b/layouts/shortcodes/chart.html @@ -1,2 +1,8 @@ -{{ $id := .Get "src" | md5 }} {{ partial "chart.html" (dict "src" (.Get "src") -"id" $id) }} +{{ partial "chart.html" }} +
+ +