From d03fccda1ad1006a1ab3061f2d327878440733a1 Mon Sep 17 00:00:00 2001 From: Velutas Date: Sat, 19 Jan 2019 12:25:39 -0800 Subject: [PATCH 1/2] 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 From 2b8e6df469c93990c6fe31c1bcf092a0db7c0096 Mon Sep 17 00:00:00 2001 From: Velutas Date: Sat, 19 Jan 2019 12:39:57 -0800 Subject: [PATCH 2/2] use absolute path --- layouts/shortcodes/mailto_email.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/mailto_email.html b/layouts/shortcodes/mailto_email.html index 56424ade7..f43da6ecf 100644 --- a/layouts/shortcodes/mailto_email.html +++ b/layouts/shortcodes/mailto_email.html @@ -1,5 +1,5 @@ {{- $e := (index $.Site.Data.events (index (split ($.Page.Permalink | relURL) "/") 2)) -}} - +