Skip to content

Commit eb504c7

Browse files
committed
fix: whitespaces in ics
1 parent 2b62303 commit eb504c7

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

_layouts/calendar-conferences.ics

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ BEGIN:VCALENDAR
22
METHOD:PUBLISH
33
VERSION:2.0
44
PRODID:-//{{ site.url }}//{{ site.github_repo }}//EN
5-
X-PUBLISHED-TTL:PT1H
6-
{%- for conf in site.data.conferences -%}
5+
X-PUBLISHED-TTL:PT1H{% for conf in site.data.conferences %}
76
BEGIN:VEVENT
87
SUMMARY:{{ conf.conference }} {{ conf.year }}
98
UID:{{conf.conference | slugify: "latin"}}-{{conf.year}}
@@ -14,6 +13,5 @@ DTEND;VALUE=DATE:{{ conf.end | date: "%Y%m%d"}}
1413
DESCRIPTION:<a href="{{conf.link}}">{{ conf.conference }} {{ conf.year }}</a> found on <a href="https://pythondeadlin.es">PythonDeadlin.es</a>.
1514
LOCATION:{{ conf.place }}
1615
ORGANIZER:pythondeadlin.es
17-
END:VEVENT
18-
{%- endfor -%}
16+
END:VEVENT{% endfor %}
1917
END:VCALENDAR

_layouts/calendar-deadlines.ics

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ BEGIN:VCALENDAR
22
METHOD:PUBLISH
33
VERSION:2.0
44
PRODID:-//{{ site.url }}//{{ site.github_repo }}//EN
5-
X-PUBLISHED-TTL:PT1H
6-
{%- for conf in site.data.conferences -%}
7-
{% if conf.cfp_ext %}{% assign cfp = conf.cfp_ext %}{% assign extended = "(extended)" %}{% else %}{% assign cfp = conf.cfp %}{% endif %}
5+
X-PUBLISHED-TTL:PT1H{% for conf in site.data.conferences %}
6+
{%- if conf.cfp_ext -%}{%- assign cfp = conf.cfp_ext -%}{%- assign extended = "(extended)" -%}{%- else -%}{%- assign cfp = conf.cfp -%}{%- endif -%}
87
{% if conf.workshop_deadline and conf.workshop_deadline != "TBA" %}
98
BEGIN:VEVENT
109
SUMMARY:{{ conf.conference }} {{ conf.year }} Workshop Deadline
11-
UID:{{conf.conference | slugify: "latin"}}-{{conf.year}}-workshop {% if conf.timezone contains "UTC" %} {% assign tz = conf.timezone | split: "UTC" %} {% if tz[1] contains "-" %} {% assign tz = tz[1] | replace: "-", "+" %} {% else if tz[1] contains "+" %} {% assign tz = tz[1] | replace: "+", "-" %} {% else assign tz = tz[1] %} {% endif %}
10+
UID:{{conf.conference | slugify: "latin"}}-{{conf.year}}-workshop {%- if conf.timezone contains "UTC" -%} {%- assign tz = conf.timezone | split: "UTC" -%} {%- if tz[1] contains "-" -%} {%- assign tz = tz[1] | replace: "-", "+" -%} {%- else if tz[1] contains "+" -%} {%- assign tz = tz[1] | replace: "+", "-" -%} {%- else assign tz = tz[1] -%} {%- endif -%}
1211
ORGANIZER:pythondeadlin.es
1312
DESCRIPTION:<a href="{{conf.link}}">{{ conf.conference }} {{ conf.year }}</a> found on <a href="https://pythondeadlin.es">PythonDeadlin.es</a>.
1413
DTSTAMP:{{ site.time | date: "%Y%m%dT%H%M%SZ" }}
@@ -18,11 +17,12 @@ ORGANIZER:pythondeadlin.es
1817
DESCRIPTION:<a href="{{conf.link}}">{{ conf.conference }} {{ conf.year }}</a> found on <a href="https://pythondeadlin.es">PythonDeadlin.es</a>.
1918
DTSTAMP:{{ site.time | date: "%Y%m%dT%H%M%SZ" }}
2019
DTSTART;TZID={{ conf.timezone }}:{{ conf.workshop_deadline | date: "%Y%m%dT%H%M%S" }}
21-
{% endif %}END:VEVENT{% endif %}
20+
{% endif %}END:VEVENT
21+
{%- endif -%}
2222
{% if conf.tutorial_deadline and conf.tutorial_deadline != "TBA" %}
2323
BEGIN:VEVENT
2424
SUMMARY:{{ conf.conference }} {{ conf.year }} Tutorial Deadline
25-
UID:{{conf.conference | slugify: "latin"}}-{{conf.year}}-tutorial {% if conf.timezone contains "UTC" %} {% assign tz = conf.timezone | split: "UTC" %} {% if tz[1] contains "-" %} {% assign tz = tz[1] | replace: "-", "+" %} {% else if tz[1] contains "+" %} {% assign tz = tz[1] | replace: "+", "-" %} {% else assign tz = tz[1] %} {% endif %}
25+
UID:{{conf.conference | slugify: "latin"}}-{{conf.year}}-tutorial {%- if conf.timezone contains "UTC" -%} {%- assign tz = conf.timezone | split: "UTC" -%} {%- if tz[1] contains "-" -%} {%- assign tz = tz[1] | replace: "-", "+" -%} {%- else if tz[1] contains "+" -%} {%- assign tz = tz[1] | replace: "+", "-" -%} {%- else assign tz = tz[1] -%} {%- endif -%}
2626
ORGANIZER:pythondeadlin.es
2727
DESCRIPTION:<a href="{{conf.link}}">{{ conf.conference }} {{ conf.year }}</a> found on <a href="https://pythondeadlin.es">PythonDeadlin.es</a>.
2828
DTSTAMP:{{ site.time | date: "%Y%m%dT%H%M%SZ" }}
@@ -32,10 +32,12 @@ ORGANIZER:pythondeadlin.es
3232
DESCRIPTION:<a href="{{conf.link}}">{{ conf.conference }} {{ conf.year }}</a> found on <a href="https://pythondeadlin.es">PythonDeadlin.es</a>.
3333
DTSTAMP:{{ site.time | date: "%Y%m%dT%H%M%SZ" }}
3434
DTSTART;TZID={{ conf.timezone }}:{{ conf.tutorial_deadline | date: "%Y%m%dT%H%M%S" }}
35-
{% endif %}END:VEVENT{% endif %}
36-
{% if cfp != "TBA" %}BEGIN:VEVENT
35+
{% endif %}END:VEVENT
36+
{%- endif -%}
37+
{% if cfp != "TBA" %}
38+
BEGIN:VEVENT
3739
SUMMARY:{{ conf.conference }} {{ conf.year }} Deadline {{ extended }}
38-
UID:{{conf.conference | slugify: "latin"}}-{{conf.year}} {% if conf.timezone contains "UTC" %} {% assign tz = conf.timezone | split: "UTC" %} {% if tz[1] contains "-" %} {% assign tz = tz[1] | replace: "-", "+" %} {% else if tz[1] contains "+" %} {% assign tz = tz[1] | replace: "+", "-" %} {% else assign tz = tz[1] %} {% endif %}
40+
UID:{{conf.conference | slugify: "latin"}}-{{conf.year}} {%- if conf.timezone contains "UTC" -%} {%- assign tz = conf.timezone | split: "UTC" -%} {%- if tz[1] contains "-" -%} {%- assign tz = tz[1] | replace: "-", "+" -%} {%- else if tz[1] contains "+" -%} {%- assign tz = tz[1] | replace: "+", "-" -%} {%- else assign tz = tz[1] -%} {%- endif -%}
3941
ORGANIZER:pythondeadlin.es
4042
DESCRIPTION:<a href="{{conf.link}}">{{ conf.conference }} {{ conf.year }}</a> found on <a href="https://pythondeadlin.es">PythonDeadlin.es</a>.
4143
DTSTAMP:{{ site.time | date: "%Y%m%dT%H%M%SZ" }}
@@ -46,6 +48,5 @@ DESCRIPTION:<a href="{{conf.link}}">{{ conf.conference }} {{ conf.year }}</a> fo
4648
DTSTAMP:{{ site.time | date: "%Y%m%dT%H%M%SZ" }}
4749
DTSTART;TZID={{ conf.timezone }}:{{ cfp | date: "%Y%m%dT%H%M%S" }}
4850
{% endif %}END:VEVENT
49-
{% endif %}
50-
{%- endfor -%}
51+
{%- endif -%}{% endfor %}
5152
END:VCALENDAR

0 commit comments

Comments
 (0)