From d03fccda1ad1006a1ab3061f2d327878440733a1 Mon Sep 17 00:00:00 2001 From: Velutas Date: Sat, 19 Jan 2019 12:25:39 -0800 Subject: [PATCH] Fixes #682 Create a shortcode that allows the mailto field to be set on individual event pages --- layouts/shortcodes/mailto_email.html | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 layouts/shortcodes/mailto_email.html diff --git a/layouts/shortcodes/mailto_email.html b/layouts/shortcodes/mailto_email.html new file mode 100644 index 000000000..56424ade7 --- /dev/null +++ b/layouts/shortcodes/mailto_email.html @@ -0,0 +1,7 @@ +{{- $e := (index $.Site.Data.events (index (split ($.Page.Permalink | relURL) "/") 2)) -}} + + \ No newline at end of file