diff --git a/package.json b/package.json index b7440c98..f2e2ae27 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "@tailwindcss/typography": "^0.5.1", "autoprefixer": "^10.4.2", "eleventy-plugin-unfurl": "^1.0.0", - "eleventy-rss-helper": "^1.2.1", "liquidjs": "^10.6.1", "markdown-it": "^13.0.1", "markdown-it-anchor": "^8.4.1", diff --git a/src/feed.11ty.js b/src/feed.11ty.js deleted file mode 100644 index 89c3920e..00000000 --- a/src/feed.11ty.js +++ /dev/null @@ -1,27 +0,0 @@ -const createRssFeed = require('eleventy-rss-helper') - -const permalink = '/feed.xml' -const baseUrl = 'https://coryd.dev' - -module.exports = createRssFeed({ - permalink, - feedOptions(data) { - return { - title: 'Cory Dransfeldt', - description: 'Latest posts from coryd.dev', - feed_url: `${baseUrl}${permalink}`, - site_url: baseUrl, - } - }, - items(collections, data) { - return collections.posts.slice(-20).reverse() - }, - itemOptions(item, data) { - return { - title: item.data.title, - description: item.data.post_excerpt, - url: `${baseUrl}${item.url}`, - date: item.date, - } - }, -}) diff --git a/src/feeds/all.liquid b/src/feeds/all.liquid index 1d55a008..d3bf8f70 100644 --- a/src/feeds/all.liquid +++ b/src/feeds/all.liquid @@ -1,6 +1,6 @@ --- layout: null -permalink: /feeds/all.xml +permalink: /feed.xml --- {% layout "./_includes/feed.liquid" %} {% block title %}All posts • Cory Dransfeldt{% endblock %} diff --git a/yarn.lock b/yarn.lock index 7128764f..5cabb6d1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1125,14 +1125,6 @@ eleventy-plugin-unfurl@^1.0.0: "@11ty/eleventy" "^1.0.0" "@11ty/eleventy-fetch" "^3.0.0" -eleventy-rss-helper@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/eleventy-rss-helper/-/eleventy-rss-helper-1.2.1.tgz#c5a1e06bb94687f2df542adede67bbacb54f5daa" - integrity sha512-r6ZzpqDtYub39WMn+k9dzIUCUSPFw8gIMiQ1B67Dd1fn/YZ10cEuuiTCa+yuGOt5x1fm+TTdeD715TvsCzCQCg== - dependencies: - normalize-url "^4.3.0" - rss "^1.2.2" - emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" @@ -2223,18 +2215,6 @@ mime-db@1.52.0: resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== -mime-db@~1.25.0: - version "1.25.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.25.0.tgz#c18dbd7c73a5dbf6f44a024dc0d165a1e7b1c392" - integrity sha512-5k547tI4Cy+Lddr/hdjNbBEWBwSl8EBc5aSdKvedav8DReADgWJzcYiktaRIw3GtGC1jjwldXtTzvqJZmtvC7w== - -mime-types@2.1.13: - version "2.1.13" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.13.tgz#e07aaa9c6c6b9a7ca3012c69003ad25a39e92a88" - integrity sha512-ryBDp1Z/6X90UvjUK3RksH0IBPM137T7cmg4OgD5wQBojlAiUwuok0QeELkim/72EtcYuNlmbkrcGuxj3Kl0YQ== - dependencies: - mime-db "~1.25.0" - mime-types@~2.1.17, mime-types@~2.1.34: version "2.1.35" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" @@ -2409,11 +2389,6 @@ normalize-range@^0.1.2: resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA== -normalize-url@^4.3.0: - version "4.5.1" - resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a" - integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA== - nth-check@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d" @@ -3043,14 +3018,6 @@ rimraf@^3.0.2: dependencies: glob "^7.1.3" -rss@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/rss/-/rss-1.2.2.tgz#50a1698876138133a74f9a05d2bdc8db8d27a921" - integrity sha512-xUhRTgslHeCBeHAqaWSbOYTydN2f0tAzNXvzh3stjz7QDhQMzdgHf3pfgNIngeytQflrFPfy6axHilTETr6gDg== - dependencies: - mime-types "2.1.13" - xml "1.0.1" - run-parallel@^1.1.9: version "1.2.0" resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" @@ -3632,11 +3599,6 @@ ws@~8.11.0: resolved "https://registry.yarnpkg.com/ws/-/ws-8.11.0.tgz#6a0d36b8edfd9f96d8b25683db2f8d7de6e8e143" integrity sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg== -xml@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" - integrity sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw== - xmlhttprequest-ssl@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz#91360c86b914e67f44dce769180027c0da618c67"