Thanks to Ruxton for making available the source to the IndieWeb Best Nine, here are my “Best 9 Photos of 2019”.

The app walks your personal website, looking for photo posts, then makes a collage of the best nine. “Best” is determined by most IndieWeb likes or replies.

I initially tried to use the online version, but ran into some issues, so I grabbed the source and started tweaking it to handle some quirks of my site.

  • My monthly archives contain next/prev links that can be used to crawl my whole archive, but I don’t consider e.g. /2019/01/ to be a “feed”, so it’s just a collection of h-entry items. I updated the microformats2 crawler to support pages that are a collection of h-entry without a containing h-feed.
  • Counted replies marked up as ‘comment’ rather than ‘reply’.
  • Changed the resulting image size to fit more with my site’s layout.
  • Filtered out comments from myself, as well as automated comments on my checkins from Swarm via OwnYourSwarm.
  • Added cropping to make non-square images square.
  • Added some debugging to spit out my posts and their interaction counts.

Here are the links to the individual top 9 photo posts!

You can find my modified version of indieweb-bestnine on GitHub!


Likes

Chris Aldrich

Mentions

Ruxton Ruxton at said:

Thanks for your updates Marty, I’ll get them into the app. I just wanted to touch on one thing you wrote in your post, and that’s: but I don’t consider e.g. /2019/01/ to be a “feed”, Because it is a feed. h-feed is a simple, open format for publishing a stream or feed of h-entry posts, like complete posts on a home page or archive pages, or summaries or other brief lists of posts. Your /year /year/month pages are archive pages and these are exactly what h-feeds are for. A feed is a collection …