Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Commit

Permalink
Fixes devopsdays#682 Create a shortcode that allows the mailto field …
Browse files Browse the repository at this point in the history
…to be set on individual event pages
  • Loading branch information
Velutas committed Jan 19, 2019
1 parent 0538b36 commit d03fccd
Showing 1 changed file with 7 additions and 0 deletions.
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>

0 comments on commit d03fccd

Please sign in to comment.