Tyler Robertson

You can like my posts now!

Saturday, October 5, 2024

Just implemented a verrrrrry bare-bones solution for liking posts here on my blog. I've been trying to think of things I could do to help this all feel less like talking into the void, without going too far from the original goal of not having too much code on this site.

You can give it a try now! Head to the bottom of this post and click the little ❤️, and it'll join the ranks of the little 💛s that others have left before you.

Likes are tracked with a JSON file that only keeps the name of the post and how many likes are on it, and the browser's local storage helps keep track of whether you specifically have already liked a post. Nothing terribly fancy, and I don't even get a notification when you use it! Just quick, dirty, and exactly how I like it.

Like this post?