fix: headers + excerpt

This commit is contained in:
Cory Dransfeldt 2024-09-01 22:45:08 -07:00
parent 84b718f24e
commit f4530c30e2
No known key found for this signature in database
7 changed files with 13 additions and 8 deletions

View file

@ -1,3 +1,10 @@
/feeds/album-releases
Content-Type: application/xml; charset=utf-8
x-content-type-options: nosniff
/feeds/album-releases.json
Content-Type: application/json
/feeds/all
Content-Type: application/xml; charset=utf-8
x-content-type-options: nosniff

View file

@ -137,8 +137,8 @@ export default {
if (rating) processedEntry['rating'] = rating
if (tags) processedEntry['tags'] = tags
if (type === 'album-release') {
processedEntry['excerpt'] = `Check out the new release: <a href="${url}">${url}</a>`
processedEntry['content'] = `Check out the new release: ${url}`
processedEntry['excerpt'] = 'Check out the new release!'
processedEntry['content'] = 'Check out the new release!'
}
if (entry) posts.push(processedEntry)

4
package-lock.json generated
View file

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

View file

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

View file

@ -10,7 +10,7 @@
input[id="tracks-recent"] ~ [for="tracks-recent"],
input[id="tracks-window"] ~ [for="tracks-window"] {
margin-bottom: var(--sizing-lg);
margin-bottom: var(--sizing-base);
}
input[id="tracks-recent"] ~ [for="tracks-recent"]:has(+ [for="tracks-window"]) {

View file

@ -10,6 +10,5 @@ permalink: "/feeds/album-releases.json"
globals:globals
data:releases
updated:releases[0].release_date
utm_campaign:"album_releases_feed"
appVersion:appVersion
%}

View file

@ -10,6 +10,5 @@ permalink: "/feeds/album-releases"
globals:globals
data:releases
updated:releases[0].release_date
utm_campaign:"album_releases_feed"
appVersion:appVersion
%}