diff --git a/.env b/.env
index f2067092..8f62fdbb 100644
--- a/.env
+++ b/.env
@@ -1,4 +1,4 @@
API_KEY_LASTFM=
API_KEY_TRAKT=
API_KEY_WEBMENTIONS_CORYD_DEV=
-ACCESS_TOKEN_MATTER=
\ No newline at end of file
+API_KEY_PINBOARD=
diff --git a/src/_data/articles.js b/src/_data/articles.js
index 266d62cd..29d59061 100644
--- a/src/_data/articles.js
+++ b/src/_data/articles.js
@@ -1,15 +1,15 @@
const EleventyFetch = require('@11ty/eleventy-fetch')
module.exports = async function () {
- const READWISE_KEY = process.env.API_KEY_READWISE
- const headers = { Authorization: `Token ${READWISE_KEY}` }
- const url = `https://readwise.io/api/v3/list/?category=article`
+ const PINBOARD_KEY = process.env.API_KEY_PINBOARD
+ const url = `https://api.pinboard.in/v1/posts/recent?auth_token=${PINBOARD_KEY}&count=100&format=json`
const res = EleventyFetch(url, {
duration: '1h',
type: 'json',
- fetchOptions: { headers },
}).catch()
const feed = await res
- const filtered = feed.results.filter((item) => Object.keys(item.tags).includes('shortlist'))
+ const filtered = feed.posts.filter((item) => {
+ return item.shared === 'yes' && item.tags.includes('share')
+ })
return filtered.splice(0, 5)
}
diff --git a/src/_data/follow.js b/src/_data/follow.js
index 73be7b8b..d58e5dd7 100644
--- a/src/_data/follow.js
+++ b/src/_data/follow.js
@@ -2,7 +2,7 @@ module.exports = async function () {
const { ActivityFeed } = await import('@11ty/eleventy-activity-feed')
const feed = new ActivityFeed()
feed.addSource('atom', '📝', 'https://coryd.dev/feed.xml')
- // feed.addSource('atom', '🔗', 'https://coryd.dev/links.xml')
+ feed.addSource('atom', '🔗', 'https://coryd.dev/links.xml')
feed.addSource('rss', '🎥', 'https://letterboxd.com/cdme/rss')
feed.addSource('rss', '📖', 'https://oku.club/rss/collection/NvEmF')
const entries = feed.getEntries().catch()
diff --git a/src/_includes/feed-links.liquid b/src/_includes/feed-links.liquid
index a3375b38..c20f6466 100644
--- a/src/_includes/feed-links.liquid
+++ b/src/_includes/feed-links.liquid
@@ -7,7 +7,7 @@
- {% block update %}{{ articles[0].created_at | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}
+ {% block update %}{{ articles[0].date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}
{{ site.url }}
{{ site.name }}
diff --git a/src/_includes/now.liquid b/src/_includes/now.liquid
index 211240d7..55211782 100644
--- a/src/_includes/now.liquid
+++ b/src/_includes/now.liquid
@@ -35,7 +35,7 @@ layout: main
Hacking away on random projects like this page, my
blog, and whatever else I can find time for.
- {% if artists %}
+ {% if artists.size > 0 %}
Listening: artists
@@ -65,7 +65,7 @@ layout: main
{% endif %}
- {% if albums %}
+ {% if albums.size > 0 %}
Listening: albums
@@ -95,7 +95,7 @@ layout: main
{% endif %}
- {% if books %}
+ {% if books.size > 0 %}
Reading: books
@@ -111,24 +111,23 @@ layout: main
{% endif %}
- {% if articles %}
+ {% if articles.size > 0 %}
- Reading: shortlisted articles
+ Reading: favorite articles
{% endif %}
- {% if movies %}
+ {% if movies.size > 0 %}
Watching: movies
@@ -155,7 +154,7 @@ layout: main
{% endif %}
- {% if tv %}
+ {% if tv.size > 0 %}
Watching: tv
diff --git a/src/feeds/links.liquid b/src/feeds/links.liquid
index b1333b00..a909fdfb 100644
--- a/src/feeds/links.liquid
+++ b/src/feeds/links.liquid
@@ -5,18 +5,16 @@ permalink: /links.xml
{% layout "./_includes/feed-links.liquid" %}
{% block title %}Links • Cory Dransfeldt{% endblock %}
{% block self %}links.xml{% endblock %}
-{% block update %}{{ articles[0].created_at | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}
+{% block update %}{{ articles[0].time | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}
{% block entries %}
{% assign links = articles | reverse %}
{% for link in links %}
- {{ link.title | escape }}
-
- {{ link.created_at | date: "%m.%d.%Y" }}
- {{ link.url }}
-
- {{ link.summary | escape }}
-
+ {{ link.description | escape }}
+
+ {{ link.time | date: "%m.%d.%Y" }}
+ {{ link.href }}
+
{% endfor %}
{% endblock %}
diff --git a/src/follow-feed.11ty.js b/src/follow-feed.11ty.js
index 77d34fe5..23918aea 100644
--- a/src/follow-feed.11ty.js
+++ b/src/follow-feed.11ty.js
@@ -10,7 +10,7 @@ module.exports = class {
const feed = new ActivityFeed()
feed.addSource('atom', '📝', 'https://coryd.dev/feed.xml')
- // feed.addSource('atom', '🔗', 'https://coryd.dev/links.xml')
+ feed.addSource('atom', '🔗', 'https://coryd.dev/links.xml')
feed.addSource('rss', '🎥', 'https://letterboxd.com/cdme/rss')
feed.addSource('rss', '📖', 'https://oku.club/rss/collection/NvEmF')
diff --git a/src/uses.md b/src/uses.md
index 0259b464..7d577372 100644
--- a/src/uses.md
+++ b/src/uses.md
@@ -23,6 +23,8 @@ Software and services that I use for work and my own enjoyment.
macOS + iOS
- [Obsidian](https://obsidian.md)
+- [Readkit](https://readkit.app)
+- [Pinstachio](https://pinstachio.com)
- [Plexamp](https://plexamp.com)
- [Ivory](https://tapbots.com/ivory)
- [Parcel](https://parcelapp.net)
@@ -57,7 +59,8 @@ Software and services that I use for work and my own enjoyment.
- DNSimple
- Bunny.net
- [1Password](https://1password.com)
-- [Reader](https://readwise.io/read)
+- [Feedbin](https://feedbin.com)
+- [Pinboard](https://pinboard.in)
- [Trakt](https://trakt.tv)
- [Letterboxd](https://letterboxd.com)
- [Oku](https://oku.club)