fix: headers + excerpt
This commit is contained in:
parent
84b718f24e
commit
f4530c30e2
7 changed files with 13 additions and 8 deletions
7
_headers
7
_headers
|
@ -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
|
||||
|
|
|
@ -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
4
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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"]) {
|
||||
|
|
|
@ -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
|
||||
%}
|
|
@ -10,6 +10,5 @@ permalink: "/feeds/album-releases"
|
|||
globals:globals
|
||||
data:releases
|
||||
updated:releases[0].release_date
|
||||
utm_campaign:"album_releases_feed"
|
||||
appVersion:appVersion
|
||||
%}
|
Reference in a new issue