-
Notifications
You must be signed in to change notification settings - Fork 13
Fix Calendar #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Calendar #202
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,26 +3,23 @@ layout: none | |
--- | ||
BEGIN:VCALENDAR | ||
VERSION:2.0 | ||
PRODID:-//{{site.title}}//{{site.url}}//EN | ||
PRODID:-//{{ site.title }}//{{ site.url }}//EN | ||
CALSCALE:GREGORIAN | ||
METHOD:PUBLISH{% for post in site.posts %}{% if post.categories.last == "meetings-meetups" or post.categories.first == "events" or post.categories.first == "talks" or post.categories.first == "announcements" and post.layout == "post-event" %} | ||
BEGIN:VEVENT | ||
UID:{{site.url}}{{site.baseurl}}{{post.url}} | ||
DTSTAMP:{{ post.date | date: "%Y%m%dT000000Z" }}{% if post.date-start %} | ||
DTSTART;TZID=America/New_York:{{ post.date-start | date: "%Y%m%dT%H%M00" }}{% else %} | ||
UID:{{ site.url }}{{ site.baseurl }}{{ post.url | replace: '/', '-' }} | ||
DTSTAMP:{{ post.date | date: "%Y%m%dT%H%M%SZ" }}{% if post.date-start %} | ||
DTSTART;TZID=America/New_York:{{ post.date-start | date: "%Y%m%dT%H%M%S" }}{% else %} | ||
DTSTART:{{ post.date | date: "%Y%m%d" }}{% endif %}{% if post.date-end %} | ||
DTEND;TZID=America/New_York:{{ post.date-end | date: "%Y%m%dT%H%M00" }}{% else %} | ||
DTEND;TZID=America/New_York:{{ post.date-end | date: "%Y%m%dT%H%M%S" }}{% else %} | ||
DTEND:{{ post.date | date: "%Y%m%d" }}{% endif %}{% if post.rrule %} | ||
RRULE:{{post.rrule}}{% endif %} | ||
ORGANIZER;CN="{{site.title}}":MAILTO:{{site.email}} | ||
SUMMARY:{{post.title}} | ||
DESCRIPTION:{{post.excerpt | strip_html | newline_to_br | replace: "<br />", " " | strip_newlines | strip}} | ||
RRULE:{{ post.rrule | strip_newlines }}{% endif %} | ||
ORGANIZER;CN="{{ site.title }}":MAILTO:{{ site.email }} | ||
SUMMARY:{{ post.title | escape }} | ||
DESCRIPTION:{{ post.excerpt | strip_html | newline_to_br | replace: "<br />", " " | strip_newlines | escape }} | ||
CLASS:PUBLIC{% if post.location %} | ||
LOCATION:{{post.location}}{% endif %}{% if post.redirect %} | ||
URL:{{post.redirect}}{% elsif post.categories.last != "meetings-meetups" %} | ||
URL:{{site.url}}{{site.baseurl}}{{post.url}}{% else %} | ||
URL:{{site.url}}{{site.baseurl}}/get-involved{% endif %}{% if post.categories.last == "meetings-meetups" %} | ||
Comment on lines
-22
to
-24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason why these variations on the URL were removed? The warnings from the RFC checker were mostly timezone and line length related, so I'm not seeing a reason to change this |
||
CATEGORIES:{{site.title-abbrev}},{{site.title}},{{post.categories.last | upcase}}{% else %} | ||
CATEGORIES:{{site.title-abbrev}},{{site.title}},{{post.categories.first | upcase}}{% endif %} | ||
Comment on lines
-25
to
-26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same thing here - Is there a reason these lines were changed? |
||
LOCATION:{{ post.location | escape }}{% endif %} | ||
URL:{{ site.url }}{{ site.baseurl }}{{ post.url }} | ||
CATEGORIES:{{ site.title-abbrev }},{{ site.title }},{{ post.categories.first | upcase }} | ||
END:VEVENT{% endif %}{% endfor %} | ||
END:VCALENDAR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these settings associated with a particular jekyll plugin? They dont seem to be referred to in the
calendar.ics
file and i dont see any similarly named plugins inGemfile
or_config.yaml
that would indicate what these parameters are doing.