From 34792d142770e726618ff2f73b55f1a55ead387e Mon Sep 17 00:00:00 2001 From: "Tobias L. Maier" Date: Mon, 26 Jan 2015 14:41:11 +0100 Subject: [PATCH 1/4] Add meetup.ics --- _posts/2015-01-29-stammtisch.md | 3 +++ meetups.ics | 40 +++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 meetups.ics diff --git a/_posts/2015-01-29-stammtisch.md b/_posts/2015-01-29-stammtisch.md index 36a12a3..855cde4 100644 --- a/_posts/2015-01-29-stammtisch.md +++ b/_posts/2015-01-29-stammtisch.md @@ -6,6 +6,9 @@ time: Thursday 29 Jan 2014, 19:00 calendar_month: JAN calendar_date: 29 description: Join us for the first Stammtisch in 2015! +event: + start: 2015-01-29 19:00:00 + end: 2015-01-29 22:00:00 venue: | Wirtshaus im Fraunhofer Fraunhoferstr. 9 diff --git a/meetups.ics b/meetups.ics new file mode 100644 index 0000000..e6ec28a --- /dev/null +++ b/meetups.ics @@ -0,0 +1,40 @@ +--- +layout: none +--- +BEGIN:VCALENDAR +VERSION:2.0 +CALSCALE:GREGORIAN +BEGIN:VTIMEZONE +TZID:Europe/Berlin +BEGIN:DAYLIGHT +TZOFFSETFROM:+0100 +RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU +DTSTART:19810329T020000 +TZNAME:MESZ +TZOFFSETTO:+0200 +END:DAYLIGHT +BEGIN:STANDARD +TZOFFSETFROM:+0200 +RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU +DTSTART:19961027T030000 +TZNAME:MEZ +TZOFFSETTO:+0100 +END:STANDARD +END:VTIMEZONE +{% assign meetup = site.posts.first %} +{% if meetup.placeholder == false %} +BEGIN:VEVENT +CREATED:20150126T131641Z +UID:{{ meetup.date | cgi_escape }}@refreshmunich.com +URL;VALUE=URI:http://refreshmunich.com +TRANSP:OPAQUE +SUMMARY:Refresh Munich Meetup +DTSTART;TZID=Europe/Berlin:{{ meetup.event.start | date: "%Y%m%dT%H%M" }}00 +DTEND;TZID=Europe/Berlin:{{ meetup.event.end | date: "%Y%m%dT%H%M" }}00 +DTSTAMP;TZID=Europe/Berlin:{{ meetup.event.start | date: "%Y%m%dT%H%M" }}00 +LOCATION:{{ meetup.venue | replace: "\n", "\\n" }} +SEQUENCE:0 +DESCRIPTION:{{ meetup.description | replace: "\n", "\\n" }} +END:VEVENT +{% endif %} +END:VCALENDAR From f2369a77a9a612e5bcbf378cb309346b5eb82c77 Mon Sep 17 00:00:00 2001 From: "Tobias L. Maier" Date: Mon, 26 Jan 2015 14:48:32 +0100 Subject: [PATCH 2/4] Add Gemfile --- .gitignore | 3 ++- Gemfile | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 Gemfile diff --git a/.gitignore b/.gitignore index 1c563ae..4efd0fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .DS_Store -_site \ No newline at end of file +_site +Gemfile.lock \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..97355ea --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gem 'github-pages' From d29da3560b610e113aacbda441bc28a16ab0ee01 Mon Sep 17 00:00:00 2001 From: "Tobias L. Maier" Date: Mon, 26 Jan 2015 14:48:41 +0100 Subject: [PATCH 3/4] Add .travis.yml --- .travis.yml | 4 ++++ _config.yml | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..98339f2 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: ruby +sudo: false +cache: bundler +script: bundle exec jekyll build diff --git a/_config.yml b/_config.yml index 624f4b8..77d4a23 100644 --- a/_config.yml +++ b/_config.yml @@ -9,4 +9,7 @@ permalink: date future: false repo_url: http://github.com/refreshmunich/website -pages_url: http://refreshmunich.com/ \ No newline at end of file +pages_url: http://refreshmunich.com/ + +exclude: + - vendor From 01d3585b7c1c79f008cc5641a077490385032e61 Mon Sep 17 00:00:00 2001 From: "Tobias L. Maier" Date: Mon, 26 Jan 2015 15:04:20 +0100 Subject: [PATCH 4/4] Split up venue address I'm unable to replace newline with "\n" ussign known Liquid syntax --- _posts/2015-01-29-stammtisch.md | 14 +++++++------- index.html | 11 ++++++++++- meetups.ics | 6 +++--- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/_posts/2015-01-29-stammtisch.md b/_posts/2015-01-29-stammtisch.md index 855cde4..0e8551b 100644 --- a/_posts/2015-01-29-stammtisch.md +++ b/_posts/2015-01-29-stammtisch.md @@ -7,11 +7,11 @@ calendar_month: JAN calendar_date: 29 description: Join us for the first Stammtisch in 2015! event: - start: 2015-01-29 19:00:00 - end: 2015-01-29 22:00:00 -venue: | - Wirtshaus im Fraunhofer - Fraunhoferstr. 9 - 80469 München - [www.fraunhofertheater.de](http://www.fraunhofertheater.de) + start: 2015-01-29 19:00:00 +0100 + end: 2015-01-29 22:00:00 +0100 +venue: + name: Wirtshaus im Fraunhofer + street: Fraunhoferstr. 9 + plz: 80469 München + url: http://www.fraunhofertheater.de --- \ No newline at end of file diff --git a/index.html b/index.html index b1cfb4d..151ce47 100644 --- a/index.html +++ b/index.html @@ -39,7 +39,16 @@
-
{{ meetup.venue | markdownify }}
+
+ {{ meetup.venue.name }}
+ {{ meetup.venue.street }}
+ {{ meetup.venue.plz }}
+ {% if meetup.venue.url %} + + {{ meetup.venue.url }} + + {% endif %} +
{{ meetup.description }}
diff --git a/meetups.ics b/meetups.ics index e6ec28a..ca52260 100644 --- a/meetups.ics +++ b/meetups.ics @@ -1,5 +1,5 @@ --- -layout: none +layout: nil --- BEGIN:VCALENDAR VERSION:2.0 @@ -25,14 +25,14 @@ END:VTIMEZONE {% if meetup.placeholder == false %} BEGIN:VEVENT CREATED:20150126T131641Z -UID:{{ meetup.date | cgi_escape }}@refreshmunich.com +UID:{{ meetup.date }}@refreshmunich.com URL;VALUE=URI:http://refreshmunich.com TRANSP:OPAQUE SUMMARY:Refresh Munich Meetup DTSTART;TZID=Europe/Berlin:{{ meetup.event.start | date: "%Y%m%dT%H%M" }}00 DTEND;TZID=Europe/Berlin:{{ meetup.event.end | date: "%Y%m%dT%H%M" }}00 DTSTAMP;TZID=Europe/Berlin:{{ meetup.event.start | date: "%Y%m%dT%H%M" }}00 -LOCATION:{{ meetup.venue | replace: "\n", "\\n" }} +LOCATION:{{ meetup.venue.name }}\n{{ meetup.venue.street }}\n{{ meetup.venue.plz }} SEQUENCE:0 DESCRIPTION:{{ meetup.description | replace: "\n", "\\n" }} END:VEVENT