diff --git a/config/filters/index.js b/config/filters/index.js index 7822e30b..df2f1607 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -110,12 +110,16 @@ export default { const md = markdownIt({ html: true, linkify: true }) let excerpt = '' let url = '' + let title = entry.title const feedNote = '

This is a full text feed, but not all content can be rendered perfectly within the feed. If something looks off, feel free to visit my site for the original post.

' // set the entry url if (entry.url?.includes('http')) url = entry.url if (!entry.url?.includes('http')) url = new URL(entry.url, BASE_URL).toString() - if (entry?.link) url = entry.link + if (entry?.link) { + title = `${entry.title} via ${entry.authors.name}` + url = entry.link + } // set the entry excerpt if (entry.description) excerpt = entry.description // general case @@ -130,7 +134,7 @@ export default { // if there's a valid entry return a normalized object if (entry) posts.push({ - title: entry.title, + title, url, content: entry.description, date, diff --git a/package-lock.json b/package-lock.json index 3a6d0de4..5acd4e3c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "18.1.3", + "version": "18.1.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "18.1.3", + "version": "18.1.4", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", @@ -24,7 +24,6 @@ "@cdransf/eleventy-plugin-tabler-icons": "^1.5.0", "@supabase/supabase-js": "^2.43.4", "dotenv-flow": "^4.1.0", - "gray-matter": "^4.0.3", "html-minifier-terser": "^7.2.0", "liquidjs": "^10.13.1", "luxon": "^3.4.4", @@ -830,9 +829,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001625", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001625.tgz", - "integrity": "sha512-4KE9N2gcRH+HQhpeiRZXd+1niLB/XNLAhSy4z7fI8EzcbcPoAqjNInxVHTiTwWfTIV4w096XG8OtCOCQQKPv3w==", + "version": "1.0.30001626", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001626.tgz", + "integrity": "sha512-JRW7kAH8PFJzoPCJhLSHgDgKg5348hsQ68aqb+slnzuB5QFERv846oA/mRChmlLAOdEDeOkRn3ynb1gSFnjt3w==", "dev": true, "funding": [ { diff --git a/package.json b/package.json index 6cf647eb..2380b44d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "18.1.3", + "version": "18.1.4", "description": "The source for my personal site. Built using 11ty.", "type": "module", "scripts": { @@ -34,7 +34,6 @@ "@cdransf/eleventy-plugin-tabler-icons": "^1.5.0", "@supabase/supabase-js": "^2.43.4", "dotenv-flow": "^4.1.0", - "gray-matter": "^4.0.3", "html-minifier-terser": "^7.2.0", "liquidjs": "^10.13.1", "luxon": "^3.4.4",