I recently moved the entirety of my site (save this blog) to using jekyll. I have to admit, it’s really nice and eases maintenance tenfold. One thing I wanted to do was have a recent posts feed on my front page. Luckily, tumblr has an API I took advantage of. With a little bit of jquery, I was able to write out the top 5 recent posts on this blog.
This will populate a variable called tumblr_api_read that we can use in the following:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Then we can just put:
in our html and it’ll be populated with recent posts. There you have it! Quick and easy way to add a recent tumblr posts to your site.