diff --git a/Makefile b/Makefile index 06b970c93..65a7bcc62 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ PAGES:=$(patsubst content/pages/%.xml, build/%.html, $(wildcard content/pages/*. # Seiten zu einzelnen News-Items: NEWS_PAGES:=$(patsubst content/news/%.xml, build/news/%.html, $(wildcard content/news/*.xml)) # News-Index und Feeds: -NEWSFILES:=build/news.html build/news-rss.xml build/news-atom.xml build/xcal.xml +NEWSFILES:=build/news.html build/news-rss.xml build/news-atom.xml build/xcal.xml build/ical.ics # Datenspuren-Seiten: DS_PAGES:=$(patsubst content/datenspuren/%.xml, build/datenspuren/%.html, $(wildcard content/datenspuren/*.xml)) build/datenspuren/schedule.html # Suchseiten-Template @@ -84,6 +84,9 @@ build/news-atom.xml : STYLE=xsl/atom.xsl build/news-atom.xml : NOVALID_IGNORE:=true build/news-atom.xml : VFLAGS_OUT=--noout --relaxng xsd/atom.rng build/xcal.xml : STYLE=xsl/xcal.xsl +build/ical.ics : STYLE=xsl/ical.xsl +build/ical.ics : NOVALID_IGNORE:=true +build/ical.ics : VFLAGS_OUT=--noout #.INTERMEDIATE: news.xml news.xml: $(NEWSITEMS) diff --git a/xsl/ical.xsl b/xsl/ical.xsl new file mode 100644 index 000000000..180b7cac3 --- /dev/null +++ b/xsl/ical.xsl @@ -0,0 +1,144 @@ + + + + + + + + https://www.c3d2.de/ + + + + + BEGIN:VCALENDAR + + + VERSION:2.0 + + + PRODID:-//C3D2-Web//event iCal-Export//DE + + + CALSCALE:GREGORIAN + + + METHOD:PUBLISH + + + X-WR-CALDESC;VALUE=TEXT:Events und Themenabende beim CCC Dresden + + + X-WR-CALNAME;VALUE=TEXT:C3D2-Events + + + X-WR-TIMEZONE;VALUE=TEXT:Europe/Berlin + + + + + + + + + + + + + + + + + END:VCALENDAR + + + + + + + + + BEGIN:VEVENT + + + METHOD:PUBLISH + + + UID: + + @www.c3d2.de + + + DTSTAMP: + + + + + + DTSTART: + + + + + + + DTEND: + + + + + + + + SUMMARY: + + + + + CLASS:PUBLIC + + + CATEGORY: + + + + URL: + + + .html + + + + LOCATION: + + + + + END:VEVENT + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/rss.xsl b/xsl/rss.xsl index 48b14b5e6..3d235c2f9 100644 --- a/xsl/rss.xsl +++ b/xsl/rss.xsl @@ -48,11 +48,11 @@ <xsl:value-of select="@title"/> - - + + diff --git a/xsl/xcal.xsl b/xsl/xcal.xsl index 1b4064657..6d8bc7dd3 100644 --- a/xsl/xcal.xsl +++ b/xsl/xcal.xsl @@ -18,7 +18,7 @@ - + diff --git a/xsl/xhtml.xsl b/xsl/xhtml.xsl index 49af3a592..53b68ac4e 100644 --- a/xsl/xhtml.xsl +++ b/xsl/xhtml.xsl @@ -225,7 +225,7 @@

- Die Neuigkeiten des C3D2 sind auch als ATOM und RSS, die Veranstaltungen als XCal abrufbar. + Die Neuigkeiten des C3D2 sind auch als ATOM und RSS, die Veranstaltungen als iCal und XCal abrufbar. Mehr News gibts im Archiv.