From 7e55338697ff94bd75199df0dabd127a9ed26528 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 10 Aug 2024 16:15:22 -0700 Subject: [PATCH] chore: myriad feed fixes --- config/filters/index.js | 13 +++- package-lock.json | 4 +- package.json | 2 +- src/assets/styles/feed.xsl | 2 +- src/includes/base.liquid | 11 ++-- src/includes/partials/feeds/json.liquid | 64 +++++++++++++------ src/includes/partials/feeds/rss.liquid | 9 ++- src/pages/dynamic/books/index.html | 2 +- src/pages/dynamic/links.html | 2 +- src/pages/dynamic/watching/index.html | 2 +- src/pages/feeds/json/all.liquid | 3 +- src/pages/feeds/json/books.liquid | 3 +- src/pages/feeds/json/links.liquid | 3 +- src/pages/feeds/json/movies.liquid | 3 +- .../feeds/json/{feed.liquid => posts.liquid} | 3 +- src/pages/feeds/rss/all.liquid | 3 +- src/pages/feeds/rss/books.liquid | 3 +- src/pages/feeds/rss/links.liquid | 3 +- src/pages/feeds/rss/movies.liquid | 3 +- .../feeds/rss/{feed.liquid => posts.liquid} | 3 +- 20 files changed, 82 insertions(+), 59 deletions(-) rename src/pages/feeds/json/{feed.liquid => posts.liquid} (81%) rename src/pages/feeds/rss/{feed.liquid => posts.liquid} (81%) diff --git a/config/filters/index.js b/config/filters/index.js index d90d0c2a..ed72482a 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -120,6 +120,7 @@ export default { const md = mdGenerator() let excerpt = '' let url = '' + let author 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.

' @@ -128,7 +129,13 @@ export default { if (entry?.slug) url = new URL(entry.slug, BASE_URL).toString() if (entry?.link) { title = `${entry.title} via ${entry.authors.name}` - url = entry.link + url = entry.link, + author = { + name: entry.authors.name, + url: entry.authors.url, + mastodon: entry.authors?.mastodon || '', + rss: entry.authors?.rss_feed || '' + } } if (entry.description) excerpt = entry.description if (entry.type === 'book' || entry.type === 'movie' || entry.type === 'link') excerpt = `${entry.description}` @@ -142,7 +149,9 @@ export default { content: entry.description, date, excerpt, - rating: entry?.rating || '' + rating: entry?.rating || '', + tags: entry?.tags || '', + author }) }) return posts diff --git a/package-lock.json b/package-lock.json index 58144dfb..2f00382d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "21.9.4", + "version": "21.10.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "21.9.4", + "version": "21.10.0", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", diff --git a/package.json b/package.json index ded5d311..ab5efc55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "21.9.4", + "version": "21.10.0", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "scripts": { diff --git a/src/assets/styles/feed.xsl b/src/assets/styles/feed.xsl index faa161d8..80a16105 100644 --- a/src/assets/styles/feed.xsl +++ b/src/assets/styles/feed.xsl @@ -303,7 +303,7 @@

View more of the feeds from my site. Or subscribe by adding the URL below to your feed reader of choice.

-                  
+                  
                 


diff --git a/src/includes/base.liquid b/src/includes/base.liquid index 78275bcd..08bd4c9b 100644 --- a/src/includes/base.liquid +++ b/src/includes/base.liquid @@ -102,12 +102,11 @@ - - - - - - + + + + +