feat: restore pinboard
This commit is contained in:
parent
2b675945ba
commit
ce1dce2ebd
6 changed files with 23 additions and 101 deletions
|
@ -1,95 +0,0 @@
|
|||
{
|
||||
"links": [
|
||||
{
|
||||
"tags": "development",
|
||||
"title": "What Happened to Separation of Concerns in Frontend Development",
|
||||
"id": "https://meiert.com/en/blog/what-happened-to-separation-of-concerns/",
|
||||
"url": "https://meiert.com/en/blog/what-happened-to-separation-of-concerns/",
|
||||
"date": "Tue, 31 Oct 2023 10:25:06 -0700"
|
||||
},
|
||||
{
|
||||
"tags": "development",
|
||||
"title": "It's 2023, here is why your web design sucks.",
|
||||
"id": "https://heather-buchel.com/blog/2023/10/why-your-web-design-sucks/",
|
||||
"url": "https://heather-buchel.com/blog/2023/10/why-your-web-design-sucks/",
|
||||
"date": "Tue, 31 Oct 2023 10:27:36 -0700"
|
||||
},
|
||||
{
|
||||
"tags": "music",
|
||||
"title": "You should look at this chart about music genres",
|
||||
"id": "https://pudding.cool/2023/10/genre/",
|
||||
"url": "https://pudding.cool/2023/10/genre/",
|
||||
"date": "Tue, 31 Oct 2023 11:02:55 -0700"
|
||||
},
|
||||
{
|
||||
"tags": "development",
|
||||
"title": "The Fight For The Main Thread",
|
||||
"id": "https://www.smashingmagazine.com/2023/10/speedcurve-fight-main-thread/",
|
||||
"url": "https://www.smashingmagazine.com/2023/10/speedcurve-fight-main-thread/",
|
||||
"date": "Tue, 31 Oct 2023 11:04:41 -0700"
|
||||
},
|
||||
{
|
||||
"tags": "development",
|
||||
"title": "Why I Won't Use Next.js",
|
||||
"id": "https://www.epicweb.dev/why-i-wont-use-nextjs",
|
||||
"url": "https://www.epicweb.dev/why-i-wont-use-nextjs",
|
||||
"date": "Tue, 31 Oct 2023 11:18:47 -0700"
|
||||
},
|
||||
{
|
||||
"tags": "development",
|
||||
"title": "The ideal viewport doesn’t exist",
|
||||
"id": "https://viewports.fyi/",
|
||||
"url": "https://viewports.fyi/",
|
||||
"date": "Tue, 31 Oct 2023 12:40:05 -0700"
|
||||
},
|
||||
{
|
||||
"tags": "development",
|
||||
"title": "Software disenchantment",
|
||||
"id": "https://tonsky.me/blog/disenchantment/",
|
||||
"url": "https://tonsky.me/blog/disenchantment/",
|
||||
"date": "Tue, 31 Oct 2023 18:53:38 -0700"
|
||||
},
|
||||
{
|
||||
"tags": "development",
|
||||
"title": "Second-guessing the modern web",
|
||||
"id": "https://macwright.com/2020/05/10/spa-fatigue.html",
|
||||
"url": "https://macwright.com/2020/05/10/spa-fatigue.html",
|
||||
"date": "Thu, 02 Nov 2023 08:55:58 -0700"
|
||||
},
|
||||
{
|
||||
"tags": "development",
|
||||
"title": "Presentational shadow DOM",
|
||||
"id": "https://www.mayank.co/blog/presentational-shadow-dom/",
|
||||
"url": "https://www.mayank.co/blog/presentational-shadow-dom/",
|
||||
"date": "Fri, 03 Nov 2023 12:40:07 -0700"
|
||||
},
|
||||
{
|
||||
"tags": "development",
|
||||
"title": "10 hard-to-swallow truths they won't tell you about software engineer job",
|
||||
"id": "https://www.mensurdurakovic.com/hard-to-swallow-truths-they-wont-tell-you-about-software-engineer-job/",
|
||||
"url": "https://www.mensurdurakovic.com/hard-to-swallow-truths-they-wont-tell-you-about-software-engineer-job/",
|
||||
"date": "Wed, 08 Nov 2023 11:51:21 -0800"
|
||||
},
|
||||
{
|
||||
"tags": "development",
|
||||
"title": "Web developers: remarkably untalented and careless?",
|
||||
"id": "https://www.baldurbjarnason.com/2023/web-dev-untalented/",
|
||||
"url": "https://www.baldurbjarnason.com/2023/web-dev-untalented/",
|
||||
"date": "Wed, 08 Nov 2023 11:52:01 -0800"
|
||||
},
|
||||
{
|
||||
"tags": "development",
|
||||
"title": "The Longevity of Web Components Over Frameworks",
|
||||
"id": "https://thathtml.blog/2023/11/longevity-of-web-components/",
|
||||
"url": "https://thathtml.blog/2023/11/longevity-of-web-components/",
|
||||
"date": "Wed, 08 Nov 2023 11:52:12 -0800"
|
||||
},
|
||||
{
|
||||
"tags": "tech, rss",
|
||||
"title": "RSS?",
|
||||
"id": "https://darthmall.net/weblog/2023/rss/",
|
||||
"url": "https://darthmall.net/weblog/2023/rss/",
|
||||
"date": "Thu, 09 Nov 2023 08:47:50 -0800"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,5 +1,20 @@
|
|||
const links = require('../_data/json/links.json')
|
||||
const EleventyFetch = require('@11ty/eleventy-fetch')
|
||||
|
||||
module.exports = async function () {
|
||||
return links.links.reverse()
|
||||
const API_TOKEN_PINBOARD = process.env.API_TOKEN_PINBOARD
|
||||
const url = `https://api.pinboard.in/v1/posts/recent?auth_token=${API_TOKEN_PINBOARD}&format=json&tag=share&count=5`
|
||||
const res = EleventyFetch(url, {
|
||||
duration: '1h',
|
||||
type: 'json',
|
||||
}).catch()
|
||||
const links = await res
|
||||
return links['posts'].map((link) => {
|
||||
return {
|
||||
title: link['description'],
|
||||
url: link['href'],
|
||||
tags: [...new Set(link['tags'].split(' '))],
|
||||
date: link['time'],
|
||||
description: link['extended'],
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ module.exports = async function () {
|
|||
},
|
||||
{ name: 'Trakt', url: 'https://trakt.tv/users/cdransf', icon: 'device-tv' },
|
||||
{ name: 'The StoryGraph', url: 'https://app.thestorygraph.com/profile/coryd', icon: 'books' },
|
||||
{ name: 'Pinboard', url: 'http://pinboard.in/u:cdme', icon: 'pin' },
|
||||
{ name: 'Buy Me a Coffee', url: 'https://www.buymeacoffee.com/cory', icon: 'cup' },
|
||||
],
|
||||
resume: [
|
||||
|
|
Reference in a new issue