Commit graph www/content/_index.md
Author SHA1 Message Date
a0e1ef046a Vendor ical.js instead of loading it from unpkg.com
The upcoming events table pulled its ICS parser straight from a CDN with
`import ICAL from "https://unpkg.com/ical.js/dist/ical.min.js"`. That sends
every visitor of the start page to unpkg.com, which hands their IP address and
user agent to a third party before any of our own code runs. The URL is not
even pinned to a version, so whatever ical.js publishes next is executed on our
site without anybody looking at it, and the start page silently breaks when the
CDN is unreachable.

Check the parser into `assets/js/vendor/` and let Hugo bundle it. This is what
`js.Build` is for: it runs the esbuild that is built into Hugo, so it resolves
the import at build time and needs no node_modules and no extra tooling in the
build environment. The result is minified and fingerprinted like the other
scripts of the site, and the script tag carries a subresource integrity hash.

Since the bundle now has a content hash in its name, its URL cannot be written
by hand in the markdown any more. Move the table and the script tag into an
`upcoming` shortcode, which is the same pattern `calendar.html` already uses,
and move `upcoming.js` from `static/` to `assets/` so Hugo can process it.

The vendored file is the unminified `dist/ical.js` of the pinned release: it
carries the MPL-2.0 header and is the source form of what we ship, and Hugo
minifies it for delivery anyway. `assets/js/vendor/README.md` records the
version, where it came from and how to update it.

The built bundle renders the same table as before, checked against
https://berlin.ccc.de/calendars/all.ics.

Fixes: c28f04c6e8 ("switch to ics files; make calendars work; fix some minor issues")
Assisted-by: Claude:claude-opus-5
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-08-23 01:07:25 +02:00
c28f04c6e8
switch to ics files; make calendars work; fix some minor issues 2026-08-12 02:01:58 +02:00
Vinzenz Schroeter
981108e77a update readme, markdown lint 2025-06-07 15:35:43 +02:00
murmeldin
a59129d847 comment is now correctly set 2025-04-17 00:51:51 +02:00
murmeldin
1e245cf6cd newly added club status, currently disabled until spaceapi is set public 2025-04-17 00:48:03 +02:00
Marek Krug
ddb805ad19 fix calendar: rm plenum, bastelabend, subbotnik 2025-03-12 10:08:09 +01:00
Marek Krug
03af7ae63a tdoh image, calendar improvements, minor changes to a few articles 2025-03-10 04:31:53 +01:00
b488934cf5 Revert "Anti-Viren-Paket"
This reverts commit 7857cd3c7c.
2022-06-13 19:08:35 +02:00
7857cd3c7c Anti-Viren-Paket 2020-03-12 00:42:00 +01:00
Carina
61bc449eeb Removed hint to CCCB Maintenance Days since they are over. 2019-09-04 16:30:33 +02:00
ae512a738e Information über Umbau 2019-08-14 11:46:27 +02:00
fbc6fe31dd Add calendar generator 2018-07-14 22:53:59 +02:00
f556273928 Initial commit 2018-05-18 01:30:59 +02:00