|
4 | 4 | {{ $e := (index $.Site.Data.events $event_slug) }} |
5 | 5 | {{/* end site data query */}} |
6 | 6 | <!-- register button --> |
7 | | -<div class = "row"> |
8 | 7 |
|
9 | | -<div class = "col-md-12"> |
| 8 | +<div class = "row"> |
10 | 9 |
|
| 10 | + <!-- register button --> |
| 11 | + {{ if $e.registration_open }} |
| 12 | + {{ if eq $e.registration_open "true" }} |
| 13 | + {{ if $e.registration_link }} |
| 14 | + {{ if eq $e.registration_link "" }} |
| 15 | + {{ $.Scratch.Set "registration_link" (printf "/events/%s/register" $event_slug)}} |
| 16 | + {{ else }} |
| 17 | + {{ $.Scratch.Set "registration_link" $e.registration_link }} |
| 18 | + {{ end }} |
| 19 | + {{ else }} |
| 20 | + {{ $.Scratch.Set "registration_link" (printf "/events/%s/register" $event_slug)}} |
11 | 21 |
|
12 | | -{{ if $e.registration_open }} |
13 | | - {{ if eq $e.registration_open "true" }} |
14 | | - {{ if $e.registration_link }} |
15 | | - {{ if eq $e.registration_link "" }} |
16 | | - {{ $.Scratch.Set "registration_link" (printf "/events/%s/register" $event_slug)}} |
17 | | - {{ else }} |
18 | | - {{ $.Scratch.Set "registration_link" $e.registration_link }} |
19 | 22 | {{ end }} |
20 | | - {{ else }} |
21 | | - {{ $.Scratch.Set "registration_link" (printf "/events/%s/register" $event_slug)}} |
| 23 | + <div class = "col-auto offset-1 offset-md-0 welcome-page-cta"> |
| 24 | + <a href="{{ $.Scratch.Get "registration_link" }}" class="btn jssocials-share-link event-cta-button" role="button" aria-pressed="true">Register</a> |
| 25 | + </div> |
| 26 | + {{ end }} |
| 27 | + {{ end }} |
22 | 28 |
|
23 | | - {{ end }} |
24 | | - <a href="{{ $.Scratch.Get "registration_link" }}" class="btn jssocials-share-link event-cta-button" role="button" aria-pressed="true">Register</a> |
25 | | - {{ end }} |
26 | | -{{ end }} |
27 | 29 |
|
28 | | -<!-- propose button --> |
29 | | -<!-- register button --> |
30 | | -{{ if $e.cfp_open }} |
31 | | - {{ if eq $e.cfp_open "true" }} |
32 | | - {{ if $e.cfp_link }} |
33 | | - {{ if eq $e.cfp_link "" }} |
34 | | - {{ $.Scratch.Set "cfp_link" (printf "/events/%s/propose" $event_slug)}} |
| 30 | + |
| 31 | + <!-- propose button --> |
| 32 | + |
| 33 | + {{ if $e.cfp_open }} |
| 34 | + {{ if eq $e.cfp_open "true" }} |
| 35 | + {{ if $e.cfp_link }} |
| 36 | + {{ if eq $e.cfp_link "" }} |
| 37 | + {{ $.Scratch.Set "cfp_link" (printf "/events/%s/propose" $event_slug)}} |
| 38 | + {{ else }} |
| 39 | + {{ $.Scratch.Set "cfp_link" $e.cfp_link }} |
| 40 | + {{ end }} |
35 | 41 | {{ else }} |
36 | | - {{ $.Scratch.Set "cfp_link" $e.cfp_link }} |
37 | | - {{ end }} |
38 | | - {{ else }} |
39 | | - {{ $.Scratch.Set "cfp_link" (printf "/events/%s/propose" $event_slug)}} |
| 42 | + {{ $.Scratch.Set "cfp_link" (printf "/events/%s/propose" $event_slug)}} |
40 | 43 |
|
| 44 | + {{ end }} |
| 45 | + <div class = "col-auto offset-1 offset-md-0 welcome-page-cta"> |
| 46 | + <a href="{{ $.Scratch.Get "cfp_link" }}" class="btn jssocials-share-link event-cta-button" role="button" aria-pressed="true">Propose</a> |
| 47 | + </div> |
| 48 | + {{ end }} |
41 | 49 | {{ end }} |
42 | | - <a href="{{ $.Scratch.Get "cfp_link" }}" class="btn jssocials-share-link event-cta-button" role="button" aria-pressed="true">Propose</a> |
43 | | - {{ end }} |
44 | | -{{ end }} |
45 | 50 |
|
46 | | -<!-- follow on twitter button --> |
47 | | -{{ if $e.event_twitter }} |
48 | | - {{ if ne $e.event.twitter "" }} |
49 | | - <a href="https://twitter.com/{{$e.event_twitter}}" class="btn jssocials-share-link event-cta-button" role="button" aria-pressed="true">Follow</a> |
| 51 | + |
| 52 | + |
| 53 | + <!-- follow on twitter button --> |
| 54 | + {{ if $e.event_twitter }} |
| 55 | + {{ if ne $e.event.twitter "" }} |
| 56 | + <div class = "col-auto offset-1 offset-md-0 welcome-page-cta"> |
| 57 | + <a href="https://twitter.com/{{$e.event_twitter}}" class="btn jssocials-share-link event-cta-button" role="button" aria-pressed="true">Follow</a> |
| 58 | + </div> |
| 59 | + {{ end }} |
50 | 60 | {{ end }} |
51 | | -{{ end }} |
52 | | -</div> |
| 61 | + |
| 62 | + |
53 | 63 | </div> |
54 | 64 | <style> |
55 | 65 | a.jssocials-share-link { |
|
62 | 72 | } |
63 | 73 | </style> |
64 | 74 | <div class = "row"> |
65 | | - <div class = "col-md-12"> |
| 75 | + <div class = "col-md-12 offset-1 offset-md-0 welcome-page-cta"> |
66 | 76 | <div id="share"></div> |
67 | 77 | </div> |
68 | 78 |
|
|
0 commit comments