chore: update uses

This commit is contained in:
Cory Dransfeldt 2023-10-03 12:40:40 -07:00
parent b38824a0d6
commit a496b8aabb
6 changed files with 1 additions and 60 deletions

View file

@ -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']),
}
})
}

View file

@ -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

View file

@ -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' %}

View file

@ -1,15 +0,0 @@
{% if articles.size > 0 %}
<h2 class="[&>svg]:h-5 [&>svg]:w-5 [&>svg]:md:h-7 [&>svg]:md:w-7 [&>svg]:-mt-1 [&>svg]:md:-mt-1.5 [&>svg]:inline icon--bold m-0 text-xl font-black leading-tight tracking-normal dark:text-gray-200 md:text-2xl mt-8 mb-4">
{% tablericon "news" "Articles" %}
Articles
</h2>
<ul class="list-inside list-disc pl-5 md:pl-10">
{% for article in articles limit: 5 %}
<li class="mt-1.5 mb-2">
<a href="{{article.url}}" title="{{article.title | escape}}">
{{ article.title }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}

View file

@ -1,13 +0,0 @@
---
layout: null
eleventyExcludeFromCollections: true
permalink: /feeds/articles
---
{% render "partials/feeds/rss.liquid"
permalink:"/feeds/articles"
title:"Articles • Cory Dransfeldt"
description:"Articles I've liked recently."
data:articles
updated:articles[0].date
site:site
%}

View file

@ -37,10 +37,10 @@ Software and services that I use for work and my own enjoyment.
<h3 className="text-xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 sm:text-2xl sm:leading-10 md:text-4xl md:leading-14">macOS + iOS</h3>
- [Orion](https://browser.kagi.com)
- [Obsidian](https://obsidian.md)
- [Mona](https://mastodon.social/@MonaApp)
- [NetNewsWire](https://netnewswire.com)
- [GoodLinks](http://goodlinks.app)
- [Parcel](https://parcelapp.net)
<h3 className="text-xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 sm:text-2xl sm:leading-10 md:text-4xl md:leading-14">iOS</h3>
@ -77,7 +77,6 @@ Software and services that I use for work and my own enjoyment.
- [IVPN](https://www.ivpn.net)
- [Kagi](https://kagi.com)
- [Feedbin](https://feedbin.com)
- [Matter](https://getmatter.com)
- [forwardemail.net](https://forwardemail.net)
- [1Password](https://1password.com)
- [Spotify](https://spotify.com)