This demo site shows regular pages (Articles) as well as pages with ical data (Events).
It uses hugo-theme-dev in combination with the ical component.
The only change required was to copy the baseof.htmlfrom the theme into this site and add the javascript part to show the ical files on the site:
<!-- Start calendar javascript --> {{ if and (.OutputFormats.Get "Calendar") (eq .Type "events") }}
<metahttp-equiv="Content-Security-Policy"content="font-src data:" />
{{ partial "events/javascript.html" . }}
{{ end }}
<!-- End calendar javascript -->
Debugging has been enabled in hugo-theme-dev, which is the big part in the end of each page. It is not relevant to the ical component, but might be helpful to understand the underlying mechanisms.