mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-01-31 09:33:18 +01:00
use jekyll buildtime in ics feed
This commit is contained in:
parent
9f65fb5ca1
commit
487ec467c6
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ PRODID:{{ site.url }}
|
||||||
METHOD:PUBLISH
|
METHOD:PUBLISH
|
||||||
{% for event in site.events -%}
|
{% for event in site.events -%}
|
||||||
{%- assign eventDate = event.event_date | date: "%Y%m%d" -%}
|
{%- assign eventDate = event.event_date | date: "%Y%m%d" -%}
|
||||||
{%- assign currentDate = 'now' | date: "%Y%m%d" -%}
|
{%- assign currentDate = site.time | date: "%Y%m%d" -%}
|
||||||
{%- if eventDate >= currentDate -%}
|
{%- if eventDate >= currentDate -%}
|
||||||
BEGIN:VEVENT
|
BEGIN:VEVENT
|
||||||
UID:{{ event.event_date | date: "%Y%m%d" }}@netz39.de
|
UID:{{ event.event_date | date: "%Y%m%d" }}@netz39.de
|
||||||
|
@ -18,7 +18,7 @@ DESCRIPTION:More info at {{ event.url | absolute_url }}
|
||||||
CLASS:PUBLIC
|
CLASS:PUBLIC
|
||||||
DTSTART;VALUE=DATE:{{ event.event_date | date: "%Y%m%d" }}
|
DTSTART;VALUE=DATE:{{ event.event_date | date: "%Y%m%d" }}
|
||||||
DTEND;VALUE=DATE:{{ event.event_date | date: "%Y%m%d" }}
|
DTEND;VALUE=DATE:{{ event.event_date | date: "%Y%m%d" }}
|
||||||
DTSTAMP:{{ event.event_date | date: "%Y%m%d" }}T170000Z
|
DTSTAMP:{{ site.time | date: "%Y%m%d" }}T000000Z
|
||||||
END:VEVENT
|
END:VEVENT
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|
Loading…
Add table
Reference in a new issue