Skip to content

Commit 184829e

Browse files
authored
Add URL to icalendar descriptions
* Because Google doesn't support the URL property. * Update GitHub actions' versions.
1 parent d512e90 commit 184829e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010
steps:
1111

1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v5
1414

1515
- name: Setup Ruby
16-
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
16+
uses: ruby/setup-ruby@v1
1717
with:
1818
ruby-version: '3.1'
1919
bundler-cache: true
2020
cache-version: 0
2121

2222
- name: Setup Pages
2323
id: pages
24-
uses: actions/configure-pages@v3
24+
uses: actions/configure-pages@v5
2525

2626
- name: Build with Jekyll
2727
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"

_layouts/ical.ics

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ DURATION:PT2H{% endif %}
2424
LOCATION:{{ event.location.name }}{% if event.location.address %}, {{ event.location.address }}{% endif %}{% if event.location.latitude and event.location.longitude %}
2525
GEO:{{ event.location.latitude }};{{ event.location.longitude }}{% endif %}
2626
DESCRIPTION:{{ event.content | strip_html | replace: "
27-
", "\n" | strip }}
28-
X-ALT-DESC;FMTTYPE=text/html:{{ event.content | strip_newlines | normalise_whitespace | strip}}
27+
", "\n" | strip }}\n\nEvent link: {{ event.url | prepend: site.website }}
28+
X-ALT-DESC;FMTTYPE=text/html:{{ event.content | strip_newlines | normalise_whitespace | strip}}<p>Event link: <a href="{{ event.url | prepend: site.website }}">{{ event.url | prepend: site.website }}</a></p>
2929
END:VEVENT{% endfor %}
3030
END:VCALENDAR

0 commit comments

Comments
 (0)