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 ofh-entry
without a containingh-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!
- https://martymcgui.re/2019/03/29/153239/ (11 likes, 2 replies)
- https://martymcgui.re/2019/06/29/133546/ (1 like, 1 reply)
- https://martymcgui.re/2019/04/18/133411/ (1 like, 1 reply)
- https://martymcgui.re/2019/10/19/155613/ (1 like)
- https://martymcgui.re/2019/06/09/142254/ (1 like)
- https://martymcgui.re/2019/06/11/185857/ (1 reply)
- https://martymcgui.re/2019/06/27/220354/ (1 reply)
- https://martymcgui.re/2019/10/06/122724/ (1 like)
- https://martymcgui.re/2019/06/29/135959/ (1 like)
You can find my modified version of indieweb-bestnine on GitHub!
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 of …