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

Commit 49cc7d5

Browse files
committed
Merge branch 'master' of github.com:devopsdays/devopsdays-theme
2 parents eab3e26 + 56a8187 commit 49cc7d5

4 files changed

Lines changed: 70 additions & 38 deletions

File tree

layouts/partials/events/cta.html

Lines changed: 46 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,62 @@
44
{{ $e := (index $.Site.Data.events $event_slug) }}
55
{{/* end site data query */}}
66
<!-- register button -->
7-
<div class = "row">
87

9-
<div class = "col-md-12">
8+
<div class = "row">
109

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)}}
1121

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 }}
1922
{{ 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 }}
2228

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 }}
2729

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 }}
3541
{{ 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)}}
4043

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 }}
4149
{{ 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 }}
4550

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 }}
5060
{{ end }}
51-
{{ end }}
52-
</div>
61+
62+
5363
</div>
5464
<style>
5565
a.jssocials-share-link {
@@ -62,7 +72,7 @@
6272
}
6373
</style>
6474
<div class = "row">
65-
<div class = "col-md-12">
75+
<div class = "col-md-12 offset-1 offset-md-0 welcome-page-cta">
6676
<div id="share"></div>
6777
</div>
6878

static/css/site.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/site.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/scss/custom.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,28 @@ a:hover.welcome-page-masthead-link {
474474
text-decoration: none;
475475
}
476476

477+
.welcome-page-cta {
478+
margin-left: 5px;
479+
margin-right: 5px;
480+
padding-left: 0px;
481+
padding-right: 0px;
482+
}
483+
484+
.welcome-page-cta:first-child {
485+
margin-left: 15px;
486+
margin-right: 5px;
487+
}
488+
489+
@media only screen and (min-width: 768px) {
490+
491+
.welcome-page-cta:first-child {
492+
margin-left: 0px;
493+
margin-right: 5px;
494+
}
495+
496+
}
497+
498+
477499
.organizer-card {
478500
padding-bottom: 20px;
479501
}

0 commit comments

Comments
 (0)