diff --git a/www/_config.yml b/www/_config.yml
index 94a6b96..a4d2f21 100644
--- a/www/_config.yml
+++ b/www/_config.yml
@@ -14,3 +14,11 @@ map_js: |
maxZoom: 18,
detectRetina: true
}).addTo(map);
+
+defaults:
+ -
+ scope:
+ path: ""
+ type: "pages"
+ values:
+ lang: "de"
diff --git a/www/_includes/header.html b/www/_includes/header.html
index c263a4b..e52dd5a 100644
--- a/www/_includes/header.html
+++ b/www/_includes/header.html
@@ -1,5 +1,5 @@
-
+
diff --git a/www/_includes/lang_switcher.md b/www/_includes/lang_switcher.md
new file mode 100644
index 0000000..9bfc123
--- /dev/null
+++ b/www/_includes/lang_switcher.md
@@ -0,0 +1,10 @@
+
+
diff --git a/www/_includes/termine_en.md b/www/_includes/termine_en.md
new file mode 100644
index 0000000..ef8ca36
--- /dev/null
+++ b/www/_includes/termine_en.md
@@ -0,0 +1,39 @@
+{% for termin in page.termine %}
+
+ {% assign notfirst = true %}
+
+ date (yyyy-mm-dd): {{ termin.date | escape }} from 19h
+ {% if termin.override != "" %}
+ {{ termin.override | escape }}
+ {% elsif termin.stammtisch %}
+ Restaurant (“Stammtisch”)
+ please RSVP
+ {% if termin.location != "" %}
+ {% for st in site.pages %}
+ {% unless st.layout == "stammtisch" %}
+ {% continue %}
+ {% endunless %}
+ {% unless st.locname == termin.location %}
+ {% continue %}
+ {% endunless %}
+ {% assign done = true %}
+ Location: {{ termin.location | escape }}
+ {% endfor %}
+ {% unless done %}
+ Location: {{ termin.location | escape }}
+ {% endunless %}
+ {% else %}
+ Location: TBA
+ {% endif %}
+ {% else %}
+ regular meeting (Route?)
+ (short) talk:
+ {% if termin.topic %}
+ {{ termin.topic | escape }}
+ {% else %}
+ none yet ◉︵◉.
+ {% endif %}
+ {% endif %}
+
+{% endfor %}
+
diff --git a/www/_layouts/default.html b/www/_layouts/default.html
index 6ece865..d32254e 100644
--- a/www/_layouts/default.html
+++ b/www/_layouts/default.html
@@ -5,8 +5,13 @@
- {% include foto.md %}
- {% include termine.md %}
+ {% include lang_switcher.md %}
+ {% include foto.md %}
+ {% if page.lang == "en" %}
+ {% include termine_en.md %}
+ {% else %}
+ {% include termine.md %}
+ {% endif %}
{% include footer.html %}
diff --git a/www/_layouts/stammtisch.html b/www/_layouts/stammtisch.html
index 7db0a4d..1fc12b0 100644
--- a/www/_layouts/stammtisch.html
+++ b/www/_layouts/stammtisch.html
@@ -38,6 +38,7 @@
{{page.title | escape}}
{% include stammtisch_liste.md %}
+ {% include lang_switcher.md %}
{% include foto.md %}
diff --git a/www/_plugins/lang_polyfill.rb b/www/_plugins/lang_polyfill.rb
new file mode 100644
index 0000000..39ca017
--- /dev/null
+++ b/www/_plugins/lang_polyfill.rb
@@ -0,0 +1,33 @@
+# encoding: utf-8
+
+
+
+module Jekyll
+ class LangPolyfill < Generator
+ priority :high
+
+ def generate(site)
+ fakes = site.pages.map do |p|
+ next if p.data['lang'] != 'de'
+ next if File.exist?("en/#{p.path}")
+
+ copy = p.dup
+ copy.data = p.data.dup
+
+ copy.data['lang'] = 'en'
+ copy.process("en/#{copy.path}")
+
+ copy.data['title'] << " (untranslated, sorry)"
+ copy.data['translation_missing'] = <<~NOTICE
+
+ Translation missing. Unfortunately the current page has not been translated yet. Maybe an automated translation suffices?
+
+ NOTICE
+
+ copy
+ end.compact
+
+ site.pages += fakes
+ end
+ end
+end
diff --git a/www/css/main.css b/www/css/main.css
index e4239af..8c75cda 100755
--- a/www/css/main.css
+++ b/www/css/main.css
@@ -324,3 +324,7 @@ a.button:hover {
background: #CCBD8F;
cursor: pointer;
}
+
+.language_switcher {
+ padding-left: 25px;
+}
diff --git a/www/edit_c14.md b/www/edit_c14.md
index f930cbf..36a27c5 100644
--- a/www/edit_c14.md
+++ b/www/edit_c14.md
@@ -9,7 +9,7 @@ title: c¼h editieren
Bitte speichere folgenden Link. Du brauchst ihn, wenn du in Zukunft deinen
Eintrag editieren willst:
- http://www.noname-ev.de/edit_c14.html?id=(( .Id ))&pw=(( .Password.String ))
+ http://www.noname-ev.de/edit_c14.html?id=(( .Id ))&pw=(( .Password.String ))
(( end ))
diff --git a/www/en/index.md b/www/en/index.md
new file mode 100644
index 0000000..ba4e5cf
--- /dev/null
+++ b/www/en/index.md
@@ -0,0 +1,31 @@
+---
+layout: default
+title: Intro in English
+lang: en
+---
+
+# What?
+Meeting about computers, technology and their influence on society
+
+# When?
+Every Thursday, 19h
+
+# Where?
+Most often in the university building [Mathematikon, Im Neuenheimer Feld 205,
+Seminarraum A](anfahrt.html). Use the map or QR codes to find your way.
+
+Every first Thursday of a month we [meet in a random restaurant](stammtisch.html)
+(„Stammtisch“). [Please RSVP](yarpnarp.html) a couple of days in advance, so
+that we can book a suitable table. It’s pretty simple, just enter your nick
+and click “yarp”. Be sure to check the site again before you go, sometimes we
+need to choose a different place if there are too many people.
+
+You can join either – both are suitable for newcomers.
+
+# Language barrier
+There's no denying the main language of the meetings, talks and such is
+German. Don't turn away just yet, because almost everyone speaks English.
+We can't guarantee you'll feel home right off the bat, but we'll sure try
+to include you.
+
+See you soon!