Get the latest tech news

Adding view count and like button to 11ty


How to mix static and dynamic content so you can spend more time in a void

Once you understand that its documentation is shit and you are left alone in this developer life to struggle in the ultimate quest to achieve enlightenment, you might even say that it's a good blogging framework that can teach you important lessons about craving and duḥkha. A few months ago, I was eager to add some small features to my blog: a views count and a like button that viewers can click to give me some temporary pleasure before I slide back into fullness of emptiness. So I started my quest with simple idea: add express as the backend, create some APIs, write data to a JSON file, and voila!

Get the Android app

Or read this on Hacker News

Read more on:

Photo of button

button

Photo of view count

view count

Related news:

News photo

YouTube’s ‘like’ button isn’t broken, it’s just hiding

News photo

After almost 28 years, Super Mario 64 has been beaten without using the A button

News photo

Sonos Ace headphones hands-on: Joining your home theater setup with the push of a button