feat: album releases calendar

This commit is contained in:
Cory Dransfeldt 2024-08-06 12:50:40 -07:00
parent 07c7bdec24
commit c9156f2346
No known key found for this signature in database
4 changed files with 27 additions and 3 deletions

View file

@ -27,6 +27,12 @@
/blogroll.opml
Content-Disposition: attachment; filename=cory-dransfeldt-blogroll.opml
/music/releases.ics
Content-Type: text/calendar
Cache-Control: public, max-age=0, must-revalidate
Access-Control-Allow-Origin: *
Content-Disposition: inline; filename="releases.ics"
/*
Content-Security-Policy: upgrade-insecure-requests; block-all-mixed-content;
X-Frame-Options: DENY

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "coryd.dev",
"version": "21.4.12",
"version": "21.5.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coryd.dev",
"version": "21.4.12",
"version": "21.5.0",
"license": "MIT",
"dependencies": {
"@cdransf/api-text": "^1.4.0",

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "21.4.12",
"version": "21.5.0",
"description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module",
"scripts": {

View file

@ -0,0 +1,18 @@
---
layout: null
eleventyExcludeFromCollections: true
permalink: "/music/releases.ics"
---
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:-//coryd.dev//Album Releases//EN
{%- for album in albumReleases %}
BEGIN:VEVENT
SUMMARY:Release: {{ album.artist }} / {{ album.title }}
DTSTART;VALUE=DATE:{{ album.date }}
DESCRIPTION:Check out this new album release: {{ album.url }}
URL;VALUE=URI:{{ album.url }}
END:VEVENT
{%- endfor -%}
END:VCALENDAR