diff --git a/Makefile b/Makefile index e485cf4..87aea83 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ install: fi sudo pip3 install wheel --upgrade sudo pip3 install lektor --upgrade + echo -e "Pleas make sure you have unix2dos available!" build: if python3 -m lektor --version 2>/dev/null; then @@ -37,6 +38,7 @@ deploy: lektor clean --yes lektor plugin flush-cache lektor build $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS) + unix2dos temp/builds/c3woc.de/waffeln.ics lektor deploy $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS) pull: diff --git a/templates/events/event.ics b/templates/events/event.ics index b46dbf8..c259575 100644 --- a/templates/events/event.ics +++ b/templates/events/event.ics @@ -6,9 +6,10 @@ UID:{{ blk.start.strftime('%m%H%d%M%Y%S') }}{{ blk.event[:1] }}{{ blk.event[-1:] DTSTART;VALUE=DATE-TIME;TZID=Europe/Berlin:{{ blk.start.strftime('%Y%m%dT%H%M%S') }} DTSTAMP;VALUE=DATE-TIME;TZID=Europe/Berlin:{{ blk.start.strftime('%Y%m%dT%H%M%S') }} CLASS:PUBLIC -DESCRIPTION;LANGUAGE={{ this.lang }}:{{ blk.description|replace( "|", "\\n") | wordwrap(width=45, wrapstring='\n ') }} +DESCRIPTION;LANGUAGE={{ this.lang }}:{{ blk.description|replace( "|", "\\n") | wordwrap(width=35, wrapstring='\n ') }} {%- if blk.url is defined and not blk.url == '' %}\n - Weiteres dazu auf {{ blk.url }}{% endif %} + Weiteres dazu auf + {{ blk.url | wordwrap(width=65, wrapstring='\n ') }}{% endif %} LOCATION;LANGUAGE={{ this.lang }}:{{ blk.ort | wordwrap(width=45, wrapstring='\n ') }} STATUS: {%- if blk.confirmed -%} diff --git a/templates/events/header.ics b/templates/events/header.ics index d9d2cb3..f73400a 100644 --- a/templates/events/header.ics +++ b/templates/events/header.ics @@ -8,7 +8,7 @@ URL:{{ this.moreinfourl }} REFRESH-INTERVAL;VALUE=DURATION:P2D SOURCE;VALUE=URI:{{ this._path | url(external=true) }} COLOR:{{ this.color }} -{# NAME;LANGUAGE={{ this.lang }}:{{ this.name | wordwrap(width=45, wrapstring='\n ') }} #} +{#- NAME;LANGUAGE={{ this.lang }}:{{ this.name | wordwrap(width=45, wrapstring='\n ') }} #} DESCRIPTION;LANGUAGE={{ this.lang }}:{{ this.description | wordwrap(width=45, wrapstring='\n ') }} X-WR-CALNAME:{{ this.name | wordwrap(width=45, wrapstring='\n ') }} X-WR-CALDESC:{{ this.description | wordwrap(width=45, wrapstring='\n ') }}