Skip to content

Commit

Permalink
url encode google calendar feed
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnuon committed Oct 12, 2024
1 parent a054872 commit b757dc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
<h1 class="title is-1 mb-3">Events</h1>
<div class="add-to-calendar">
{% set ical_feed_url = config.base_url ~ '/events/calendar.ics' %}
{% set ical_feed_url_google = ical_feed_url | replace(from='https', to='http') %}
<a href="{{ ical_feed_url }}" class="button">
📅 Download ICS Feed
</a>
<a href="https://calendar.google.com/calendar/r?cid={{ ical_feed_url }}" class="button">
<a href="https://calendar.google.com/calendar/r?cid={{ ical_feed_url | safe }}" class="button">
📅 Add to Google Calendar
</a>
</div>
Expand Down

0 comments on commit b757dc8

Please sign in to comment.