This commit is contained in:
L3D 2023-01-18 00:19:33 +01:00
parent 8c80eb5a9f
commit eb5adadcfb
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 6 additions and 3 deletions

View file

@ -18,6 +18,7 @@ install:
fi fi
sudo pip3 install wheel --upgrade sudo pip3 install wheel --upgrade
sudo pip3 install lektor --upgrade sudo pip3 install lektor --upgrade
echo -e "Pleas make sure you have unix2dos available!"
build: build:
if python3 -m lektor --version 2>/dev/null; then if python3 -m lektor --version 2>/dev/null; then
@ -37,6 +38,7 @@ deploy:
lektor clean --yes lektor clean --yes
lektor plugin flush-cache lektor plugin flush-cache
lektor build $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS) lektor build $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS)
unix2dos temp/builds/c3woc.de/waffeln.ics
lektor deploy $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS) lektor deploy $(LEKTOR_PLUGIN_FLAGS) $(LEKTOR_DEPLOY_FLAGS)
pull: pull:

View file

@ -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') }} 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') }} DTSTAMP;VALUE=DATE-TIME;TZID=Europe/Berlin:{{ blk.start.strftime('%Y%m%dT%H%M%S') }}
CLASS:PUBLIC 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 {%- 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 ') }} LOCATION;LANGUAGE={{ this.lang }}:{{ blk.ort | wordwrap(width=45, wrapstring='\n ') }}
STATUS: STATUS:
{%- if blk.confirmed -%} {%- if blk.confirmed -%}

View file

@ -8,7 +8,7 @@ URL:{{ this.moreinfourl }}
REFRESH-INTERVAL;VALUE=DURATION:P2D REFRESH-INTERVAL;VALUE=DURATION:P2D
SOURCE;VALUE=URI:{{ this._path | url(external=true) }} SOURCE;VALUE=URI:{{ this._path | url(external=true) }}
COLOR:{{ this.color }} 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 ') }} DESCRIPTION;LANGUAGE={{ this.lang }}:{{ this.description | wordwrap(width=45, wrapstring='\n ') }}
X-WR-CALNAME:{{ this.name | 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 ') }} X-WR-CALDESC:{{ this.description | wordwrap(width=45, wrapstring='\n ') }}