diff --git a/_headers b/_headers index cc4060e0..12af5517 100644 --- a/_headers +++ b/_headers @@ -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 diff --git a/package-lock.json b/package-lock.json index 2bf67a1c..57b39099 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index a3c1c093..5e171b5a 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/pages/feeds/releases.liquid b/src/pages/feeds/releases.liquid new file mode 100644 index 00000000..25825958 --- /dev/null +++ b/src/pages/feeds/releases.liquid @@ -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 \ No newline at end of file