Add an english version to events.

This commit is contained in:
Víðir Valberg Guðmundsson 2017-01-29 17:31:18 +01:00
parent 22ae2e5fdc
commit f4e1cda967
2 changed files with 16 additions and 4 deletions

View file

@ -1,4 +1,6 @@
- title: "Søndag d. 26. februar 2017"
text: "Cryptohagen løber af stablen igen! Vi sidder i <strong>Mellemrummet</strong>. Kom og drik god fairtradekaffe med os og lær at sikre dit privatliv på det vilde web!"
- danish_title: "Søndag d. 26. februar 2017"
danish_text: "Cryptohagen løber af stablen igen! Vi sidder i <strong>Mellemrummet</strong>. Kom og drik god fairtradekaffe med os og lær at sikre dit privatliv på det vilde web!"
english_title: "Sunday the 26th of February 2017"
english_text: "Yet again Cryptohagen is happening! We're sitting in <strong>Mellemrummet</strong>. Come join us, drink a cup of good fair trade coffee and learn how to protect your privacy!"
time: "13:00-17:00"
current: true

View file

@ -94,9 +94,19 @@
{% for event in site.data.events %}
<div class="card card-inverse {% if event.current %}card-primary{% else %}card-info{% endif %}">
<div class="card-block">
<h4 class="card-title">{{ event.title }}</h4>
<h4 class="card-title">
{% if page.language == "en" %}
{{ event.english_title }}
{% else %}
{{ event.danish_title }}
{% endif %}
</h4>
<p class="card-text">
{{ event.text }}
{% if page.language == "en" %}
{{ event.english_text }}
{% else %}
{{ event.danish_text }}
{% endif %}
</p>
<p class="card-text">
<strong>{{ site.data.strings[section_events_time] }}</strong><br />