diff --git a/src/_data/articles.js b/src/_data/articles.js deleted file mode 100644 index 48a0c774..00000000 --- a/src/_data/articles.js +++ /dev/null @@ -1,28 +0,0 @@ -const EleventyFetch = require('@11ty/eleventy-fetch') - -module.exports = async function () { - const MATTER_TOKEN = process.env.ACCESS_TOKEN_MATTER - const headers = { Cookie: MATTER_TOKEN } - const url = `https://web.getmatter.com/api/library_items/favorites_feed` - const res = EleventyFetch(url, { - duration: '1h', - type: 'json', - fetchOptions: { headers }, - }) - const feed = await res - const articles = feed.feed - return articles.reverse().map((article) => { - const tags = article['content']['tags'].map((tag) => tag['name']) - return { - url: article['content']['url'], - title: article['content']['title'], - date: article['content']['library']['modified_date'] - ? new Date(article['content']['library']['modified_date']) - : new Date(article['content']['publication_date']), - description: article['content']['excerpt'], - notes: article['content']['my_notes'] || '', - tags, - id: btoa(article['id']), - } - }) -} diff --git a/src/_data/follow.js b/src/_data/follow.js index 437df113..2a178632 100644 --- a/src/_data/follow.js +++ b/src/_data/follow.js @@ -3,7 +3,6 @@ module.exports = async function () { const feed = new ActivityFeed() feed.addSource('rss', '📝', 'https://coryd.dev/feeds/posts') feed.addSource('rss', '🎥', 'https://coryd.dev/feeds/movies') - feed.addSource('rss', '📰', 'https://coryd.dev/feeds/articles') feed.addSource('rss', '📖', 'https://coryd.dev/feeds/books') const entries = feed.getEntries().catch() const res = await entries diff --git a/src/_includes/now.liquid b/src/_includes/now.liquid index a0147b43..2c1f8f7a 100644 --- a/src/_includes/now.liquid +++ b/src/_includes/now.liquid @@ -6,7 +6,6 @@ layout: main {% render "partials/now/media-grid.liquid", data:artists, icon: "microphone-2", title: "Artists", shape: "square", count: 8, loading: 'eager' %} {% render "partials/now/media-grid.liquid", data:albums, icon: "vinyl", title: "Albums", shape: "square", count: 8, loading: 'lazy' %} {% render "partials/now/albumReleases.liquid", albumReleases:albumReleases %} -{% render "partials/now/articles.liquid", articles:articles %} {% render "partials/now/media-grid.liquid", data:books, icon: "books", title: "Books", shape: "vertical", count: 6, loading: 'lazy' %} {% render "partials/now/media-grid.liquid", data:movies, icon: "movie", title: "Movies", shape: "vertical", count: 6, loading: 'lazy' %} {% render "partials/now/media-grid.liquid", data:tv, icon: "device-tv", title: "TV", shape: "vertical", count: 6, loading: 'lazy' %} diff --git a/src/_includes/partials/now/articles.liquid b/src/_includes/partials/now/articles.liquid deleted file mode 100644 index 2837d75b..00000000 --- a/src/_includes/partials/now/articles.liquid +++ /dev/null @@ -1,15 +0,0 @@ -{% if articles.size > 0 %} -