chore: pinboard -> instapaper
This commit is contained in:
parent
faa7e6c5b3
commit
b8b7dc8da4
15 changed files with 16 additions and 203 deletions
|
@ -1,15 +0,0 @@
|
|||
const EleventyFetch = require('@11ty/eleventy-fetch')
|
||||
|
||||
module.exports = async function () {
|
||||
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',
|
||||
}).catch()
|
||||
const feed = await res
|
||||
const filtered = feed.posts.filter((item) => {
|
||||
return item.shared === 'yes' && item.tags.includes('share')
|
||||
})
|
||||
return filtered.splice(0, 5)
|
||||
}
|
|
@ -2,7 +2,6 @@ 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('rss', '🎥', 'https://letterboxd.com/cdme/rss')
|
||||
feed.addSource('rss', '📖', 'https://oku.club/rss/collection/NvEmF')
|
||||
const entries = feed.getEntries().catch()
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"mastodon": "https://social.lol/@cory",
|
||||
"lastfm": "https://last.fm/user/cdme_",
|
||||
"listenbrainz": "https://listenbrainz.org/user/cdransf/",
|
||||
"pinboard": "https://pinboard.in/u:cdme/profile/public/",
|
||||
"instapaper": "https://www.instapaper.com/p/coryd",
|
||||
"letterboxd": "https://letterboxd.com/cdme",
|
||||
"letterboxd-host": "https://a.ltrbxd.com",
|
||||
"trakt": "https://trakt.tv/users/cdransf",
|
||||
|
|
Reference in a new issue