I’m a big fan of bookmarking links. I won’t always read everything, but I like having them saved somewhere. And although it’s easy to bookmark things in your browser and build up a useful resource for yourself, it annoys me that these links aren’t easily shared.
So, I’ve come up with a workflow that lets me collect and publish my bookmarked links on this blog.
1. Save links to Pocket
2. IFTTT (if this, then that) and Google Sheets
IFTTT is another handy service that lets you connect up lots of popular web apps and internet connected things.
I’ve set it up to check my Pocket account and add any links that I bookmark to a Google Sheet. Each article I bookmark gets saved to the spreadsheet as a new row.
3. Copy the data into Jekyll
Next, I need to copy the links from Google Sheets and add them as a CSV to Jekyll’s
_data folder. Now that I’ve got my links stored as structured data I can make use of Jekyll’s handy templating features.
4. Create a list of links component
I’ve created a little reusable component that will check the data folder my links and output that as a list.
Include the component and point it at the data
Insert the component into the blog post and point it to the right month, for example January 2018.
The list component itself
The list component automatically creates an unordered list of links.
Example of the generated html
5. Steps each month
Now that I’ve set all this up, it’s almost effortless to keep it maintained.
There are a couple of manual steps each month, but this forces me to review anything I’ve saved and prompts me to read a few more articles.