From 6a882b63773a76269ef1d68f477e4ded4f7c1c67 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 10 Sep 2024 09:15:00 +0100 Subject: [PATCH] Add map and table shortcodes --- layouts/shortcodes/chart.html | 3 -- layouts/shortcodes/map.html | 16 +++++++- layouts/shortcodes/table.html | 69 ++++++++++++++++++++++++++++++++++- 3 files changed, 82 insertions(+), 6 deletions(-) diff --git a/layouts/shortcodes/chart.html b/layouts/shortcodes/chart.html index 2e84e2d..8023112 100644 --- a/layouts/shortcodes/chart.html +++ b/layouts/shortcodes/chart.html @@ -1,5 +1,2 @@ - {{ $id := .Get "src" | md5 }} {{ partial "chart.html" (dict "src" (.Get "src") "id" $id) }} diff --git a/layouts/shortcodes/map.html b/layouts/shortcodes/map.html index ee3d1ff..81cfbd4 100644 --- a/layouts/shortcodes/map.html +++ b/layouts/shortcodes/map.html @@ -1 +1,15 @@ -{{ partial "map.html" }} + + + +
+
+ +
diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html index 93ed4d3..f1b401a 100644 --- a/layouts/shortcodes/table.html +++ b/layouts/shortcodes/table.html @@ -1,2 +1,67 @@ -{{ $id := .Get "src" | md5 }} {{ partial "table.html" (dict "src" (.Get "src") -"id" $id) }} + +
+