Coffee shop photos template

I take a lot of photos at coffee shops. For some reason this morning I thought it would be fun to create a page on my blog that just shows coffee photos. I already use Micro.blog filters so that whenever I include the ☕️ emoji in a microblog post, it assigns the Coffee category:

Coffee filter screenshot

The next step was to create a template layouts/_default/coffee.html in my custom theme that would pull posts from this category. It grabs the latest 100 posts, then also checks if the post has a photo (“photos not equal nil”):

Finally, I created a template content/coffee-photos.md to tell Micro.blog to use that template when creating the web page:

Voilà! Looks pretty good.

Manton Reece @manton