This repository was archived by the owner on Jul 21, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
content/events/2017-ponyville Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,4 +8,10 @@ Pivot paradigm sticky note agile grok unicorn waterfall is so 2000 and late resp
88
99# This is our thing!
1010
11+ Tickets
12+ : {{< event_link url-key="registration_link" text="Register here!" >}}
13+
14+ Location
15+ : {{< event_link text-key="location_address" page="location" >}}
16+
1117<img src =" /events/2017-ponyville/want.gif " >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ registration_date_start: 2017-05-15
1313registration_date_end : 2017-05-30
1414registration_open : " "
1515registration_closed : " "
16- registration_link : " "
16+ registration_link : " https://www.example.com "
1717coordinates : " 41.882219, -87.640530"
1818location : " Applejack House"
1919location_address : " 350 West Mart Center Drive, Chicago, IL 60654"
Original file line number Diff line number Diff line change 11{{- $e := (index $.Site.Data.events (index (split ($.Page.Permalink | relURL) "/") 2)) -}}
2- < a href = "{{ (printf "events /%s/%s" $e.name (.Get "page")) | absURL }}"> {{ .Get "text" }}</ a >
2+ {{- $url := index $e (.Get "url-key") | default (printf "events/%s/%s" $e.name (.Get "page")) | absURL -}}
3+ {{- $txt := index $e (.Get "text-key") | default (.Get "text") -}}
4+
5+ < a href = "{{ $url }} "> {{ $txt }}</ a >
You can’t perform that action at this time.
0 commit comments