Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

Fixes #682 Create a shortcode that allows the mailto field to be set #683

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions layouts/shortcodes/mailto_email.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{- $e := (index $.Site.Data.events (index (split ($.Page.Permalink | relURL) "/") 2)) -}}
<script src="/js/devopsdays-min.js"></script>
<script>
$(window).one("load", function() {
$("#share").jsSocials("shareOption", "email", "to", {{ $e.organizer_email }} );
});
</script>