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
|
/feeds/all
|
||||||
Content-Type: application/xml; charset=utf-8
|
Content-Type: application/xml; charset=utf-8
|
||||||
x-content-type-options: nosniff
|
x-content-type-options: nosniff
|
||||||
|
|
|
@ -137,8 +137,8 @@ export default {
|
||||||
if (rating) processedEntry['rating'] = rating
|
if (rating) processedEntry['rating'] = rating
|
||||||
if (tags) processedEntry['tags'] = tags
|
if (tags) processedEntry['tags'] = tags
|
||||||
if (type === 'album-release') {
|
if (type === 'album-release') {
|
||||||
processedEntry['excerpt'] = `Check out the new release: <a href="${url}">${url}</a>`
|
processedEntry['excerpt'] = 'Check out the new release!'
|
||||||
processedEntry['content'] = `Check out the new release: ${url}`
|
processedEntry['content'] = 'Check out the new release!'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entry) posts.push(processedEntry)
|
if (entry) posts.push(processedEntry)
|
||||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "24.5.0",
|
"version": "24.5.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "24.5.0",
|
"version": "24.5.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cdransf/api-text": "^1.5.0",
|
"@cdransf/api-text": "^1.5.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "24.5.0",
|
"version": "24.5.1",
|
||||||
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
input[id="tracks-recent"] ~ [for="tracks-recent"],
|
input[id="tracks-recent"] ~ [for="tracks-recent"],
|
||||||
input[id="tracks-window"] ~ [for="tracks-window"] {
|
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"]) {
|
input[id="tracks-recent"] ~ [for="tracks-recent"]:has(+ [for="tracks-window"]) {
|
||||||
|
|
|
@ -10,6 +10,5 @@ permalink: "/feeds/album-releases.json"
|
||||||
globals:globals
|
globals:globals
|
||||||
data:releases
|
data:releases
|
||||||
updated:releases[0].release_date
|
updated:releases[0].release_date
|
||||||
utm_campaign:"album_releases_feed"
|
|
||||||
appVersion:appVersion
|
appVersion:appVersion
|
||||||
%}
|
%}
|
|
@ -10,6 +10,5 @@ permalink: "/feeds/album-releases"
|
||||||
globals:globals
|
globals:globals
|
||||||
data:releases
|
data:releases
|
||||||
updated:releases[0].release_date
|
updated:releases[0].release_date
|
||||||
utm_campaign:"album_releases_feed"
|
|
||||||
appVersion:appVersion
|
appVersion:appVersion
|
||||||
%}
|
%}
|
Reference in a new issue