Add iCal subscription feed to community calendar#4
Merged
Conversation
Integrates hugo-theme-component-ical to generate a subscribable calendar feed at /calendar/calendar.ics. Events migrated from data/events.yaml to Hugo content pages, making them the single source of truth for both the HTML calendar view and the ICS feed. - Initialize Hugo modules and import finkregh/hugo-theme-component-ical@v0.11.3 - Add Calendar output format (text/calendar) scoped to the calendar section - Migrate 3 events to content/calendar/ with RFC 5545 frontmatter fields - Update calendar.html to read from .RegularPages instead of site.Data.events - Add Subscribe (.ics) button and <link rel=alternate> discovery header - Override header.ics and event.ics partials for Hugo 0.155 compatibility - Override prop_description.ics to fix DESCRIPTION/LOCATION line merging Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Member
Author
|
Needs Hugo v0.150.0+. |
- add-event.yml: on approved label, parses the community-event issue form and opens a PR creating the content/calendar/*.md file - community-event.yml: minor field description improvements - hugo.yml: bump Hugo 0.121.0 -> 0.155.1 (required for Hugo modules) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
hugo-theme-component-icalas a Hugo module to generate a subscribable.icsfeed at/calendar/calendar.icsdata/events.yamlto individual Hugo content pages undercontent/calendar/, making them the single source of truth for both the HTML view and the ICS feed<link rel="alternate" type="text/calendar">discovery headerChanges
hugo.yaml— initialize Hugo modules, addtext/calendarmedia type andCalendaroutput format, configureparams.ical.timezone: UTCgo.mod/go.sum— module dependency onfinkregh/hugo-theme-component-ical@v0.11.3content/calendar/— 3 event pages replacingdata/events.yamllayouts/_default/calendar.html— updated to read from.RegularPages; subscribe button addedlayouts/_partials/— 3 overrides for Hugo 0.155 compatibility and a whitespace fixTest plan
hugo server— calendar page renders with all 3 events/calendar/calendar.ics— valid iCalendar output starting withBEGIN:VCALENDAR🤖 Generated with Claude Code