From 7ce94e7c9383f308d5416ee9c1e86fdf91e8e111 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Mon, 23 May 2022 19:51:07 -0400 Subject: [PATCH] Added shortcode to display GPX/GPS data from gpx.studio --- layouts/shortcodes/displayGPX.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 layouts/shortcodes/displayGPX.html diff --git a/layouts/shortcodes/displayGPX.html b/layouts/shortcodes/displayGPX.html new file mode 100644 index 0000000..aaf80be --- /dev/null +++ b/layouts/shortcodes/displayGPX.html @@ -0,0 +1,11 @@ +{{ $url := printf "%sdata/hikes/%s" .Site.BaseURL (.Get 0) }} +{{ $url_state := querify "state" (printf "{\"urls\":[\"%s\"]}" $url) }} +{{ $iframe_url := printf "https://gpx.studio/?%s&embed&distance" $url_state }} +{{ $a_url := printf "https://gpx.studio/?%s" $url_state }} + \ No newline at end of file