From a20ab38aeb2eee07f8f6f515c862b18f19be8b4a Mon Sep 17 00:00:00 2001 From: James Ravenscroft Date: Tue, 29 Oct 2024 09:06:14 +0000 Subject: [PATCH] update thumbnails --- brainsteam/content/posts/2024/10/cardy-bee.md | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/brainsteam/content/posts/2024/10/cardy-bee.md b/brainsteam/content/posts/2024/10/cardy-bee.md index 2ac81e3..d5a7471 100644 --- a/brainsteam/content/posts/2024/10/cardy-bee.md +++ b/brainsteam/content/posts/2024/10/cardy-bee.md @@ -1,19 +1,21 @@ --- -title: "Generating (Non-AI) Social Images with Python (Cardy 🐝) and Hugo" -date: 2024-10-29T08:37:07Z +date: 2024-10-29 08:37:07+00:00 +description: A short post explaining how I use a Python script to generate (non-ai) + social preview images for my site draft: false -description: A short post explaining how I use a Python script to generate (non-ai) social preview images for my site -url: /2024/10/29/cardy-bee -type: posts mp-syndicate-to: - https://brid.gy/publish/mastodon - https://brid.gy/publish/twitter +preview: /social/ceb86a1341e97b030d5701fe9ec41422cb237160fbd174c1911a1a34b70da703.png tags: - - colophon - - blogging - - pompidou - - hugo - - python +- colophon +- blogging +- pompidou +- hugo +- python +title: "Generating (Non-AI) Social Images with Python (Cardy \U0001F41D) and Hugo" +type: posts +url: /2024/10/29/cardy-bee --- These days if you link to a blog post from a social media site like Mastodon or BlueSky the site will load your page and look for metadata element tagged `og:image` and render it inline as part of the link out to the article. If you don't supply one of these images, the social site will typically just show a grey rectangle or a "broken image" icon. Therefore, most of the time, when posting a new article I try to set a "feature image" to avoid this ugliness. @@ -88,4 +90,4 @@ For sure, I mean anything that requires you to run headless-chrome is not exactl ## Final Thoughts -This experiment was pretty quick for me to knock up and I'm pretty happy with the results. I've made the script available to others just in case it is useful but I'm not sure how useful it will be. You might be better off forking it and tailoring it to your needs or just using it as inspiration. Apologies for the name, I am a big fan of dad jokes, what can I say? +This experiment was pretty quick for me to knock up and I'm pretty happy with the results. I've made the script available to others just in case it is useful but I'm not sure how useful it will be. You might be better off forking it and tailoring it to your needs or just using it as inspiration. Apologies for the name, I am a big fan of dad jokes, what can I say? \ No newline at end of file