Publishing Bookmarks

The links on my bookmarks page are automatically synced from pocket.
I got the idea to do this from Luke Miles.

How does it work?

  1. I save articles I want to read on pocket.
  2. On my server, I run a small script that checks if anything new is added to my pocket list with the tag ‘public’.
  3. If it finds something that was not added to my bookmarks page yet, it adds the new link to the file that contains my bookmarks and commits and pushes it to GitHub.
  4. GitHub Pages makes sure that the new change is deployed to this website automatically.

Here is the code.