generated from carpentries/workshop-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkshop_ad.html
50 lines (48 loc) · 1.41 KB
/
workshop_ad.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{% comment %}
Advertising box at the top of a workshop website home page.
{% endcomment %}
{% assign begin_address = page.address | slice: 0, 4 | downcase %}
{% if page.address == "online" %}
{% assign online = "true_private" %}
{% elsif begin_address contains "http" %}
{% assign online = "true_public" %}
{% else %}
{% assign online = "false" %}
{% endif %}
<div class="jumbotron">
<div class="row">
<div class="col-md-10 col-md-offset-1">
{% unless site.title == "Workshop Title" or site.title == "" %}
<h1>{{site.title}}</h1>
{% endunless %}
<h2>{{page.venue}}</h2>
<div class="row">
<div class="col-md-6">
{% if online == "true_public" %}
<p>Online (<a href="{{page.address}}">link</a>)</p>
{% elsif online == "true_private" %}
<p>Online</p>
{% endif %}
<p>{{page.humandate}}</p>
<p>{% if page.humantime %}{{page.humantime}}{% endif %}</p>
</div>
<div class="col-md-6">
<p>
<strong>Instructors:</strong>
{% if page.instructor %}
{{page.instructor | join: ', ' %}}
{% else %}
to be announced.
{% endif %}
</p>
{% if page.helper %}
<p>
<strong>Helpers:</strong>
{{page.helper | join: ', ' %}}
</p>
{% endif %}
</div>
</div>
</div>
</div>
</div>