Og-Sample ━━━━━━━━━ I'm making an effort to make my og images better yet again, I'm going for that next 10% better. I really like my og images, but there are some title sizes... Date: January 9, 2026 I’m making an effort to make my og images better yet again, I’m going for that next 10% better. I really like my og images, but there are some title sizes that overflow. This page is a page to help debug. How I make these og images is for another day. Script ────── I use my own static site generator markata . I can use it to generate a list of posts wrapped in their og image. I use itertools to do a groupby so that I can do roughly every 5 characters larger, and see a wide variety of sizes. ``` from markata import Markata from itertools import groupby markata = Markata() lens = [{'length': len(post.title), 'title': post.title, 'slug': post.slug} for post in m.posts] lens_sorted = sorted(lens, key=lambda x: x["length"]) groups = { k: list(g) for k, g in groupby(lens_sorted, key=lambda x: (x["length"] // 5) * 5) } posts = [g[0] for g in groups.values()] ogs = [ f'[![{post["title"]}](https://shots.waylonwalker.com/shot/?url=https://waylonwalker.com/{ post["slug"] }/og/&height=600&width=1200&scaled_width=1200&scaled_height=600&format=jpg&v=4)](https://waylonwalker.com/{ post["slug"] }/og/)' for post in posts] print("\n\n".join(ogs)) ``` OG-Sample ───────── Image: sample Image: Kedro Image: Weeknote 0 Image: Upcoming Stream Image: Codeit Bro Interview Image: ⭐ Doomlab7 homelab-argocd Image: ⭐ heathdbrown python_code_tips Image: Making good documentation in python Image: What DataScientists Should Know About S3 Image: ⭐ nvim-treesitter nvim-treesitter-textobjects Image: ⭐ dataengineerone kedro-streaming-twitter-pipeline Image: How I Quickly Capture Screenshots directly into My Blog Image: Looking for a Heroku replacement, What I found was shocking! Image: 💭 My Bed Doesn’t Work Because of AWS Outage? TheStandup - YouTube Image: Dont Starve Together Session One - Getting Into It With A Clockwork Bishop shots ───── I also do Posts tagged: shots posts that change the og template quite a bit by adding the image to the page. I’ll do the same script, but add a filter to the images. ``` from markata import Markata from itertools import groupby markata = Markata() lens = [{'length': len(post.title), 'title': post.title, 'slug': post.slug} for post in m.filter('templateKey=="shots" and "family" not in tags')] lens_sorted = sorted(lens, key=lambda x: x["length"]) groups = { k: list(g) for k, g in groupby(lens_sorted, key=lambda x: (x["length"] // 5) * 5) } posts = [g[0] for g in groups.values()] ogs = [ f'[![{post["title"]}](https://shots.waylonwalker.com/shot/?url=https://waylonwalker.com/{ post["slug"] }/og/&height=600&width=1200&scaled_width=1200&scaled_height=600&format=jpg&v=4)](https://waylonwalker.com/{ post["slug"] }/og/)' for post in posts] print("\n\n".join(ogs)) ``` Image: Funk Track 1 Image: Hornet On A Bench Image: Apple Boxes Complete Image: Bambu Poop Flinger Jammed Image: First Fingerboard In The Press Image: Wyatt Drew A Watertower In Aesprite Image: Design For Bosch Colt Dust Collection V1 Image: Dont Starve Together Session One - Nooo Luuucy Image: Dont Starve Together Session One - Setting Up Base Image: Dont Starve Together Session One - Opening Up The Garden Image: Dont Starve Together Session One - First Encounter With A Tall Bird Image: Dont Starve Together Session One - Getting Into It With A Clockwork Bishop