Files
fundor333.com/content/post/2025/generate-post-with-img-for-hugo/index.md
Fundor333 7b30b6c67f Add new post generation feature with image support and toot shortcode
- Created a new markdown file for generating posts with an image cover in Hugo.
- Implemented a Python script to generate images with text overlay using PIL.
- Added a shortcode for displaying toots from Mastodon, including user information and media attachments.
2025-07-11 00:26:40 +02:00

1.0 KiB

title, date, draft, feature_link, feature_text, description, isStarred, tags, categories, images, keywords, series, reply, repost, like, rsvp, bookmark
title date draft feature_link feature_text description isStarred tags categories images keywords series reply repost like rsvp bookmark
Generate Post With Img for Hugo 2025-07-10T00:36:34+02:00 true https://www.midjourney.com/home/ How I create new post on Hugo and generate an image as cover false
image
hugo
script
hacking
dev
fingerfood
Hugo tricks

Some days ago I find a new post from a blog I follow about "Open Graph Meta Tags on Hugo and WordPress Blogs" as a toot

{{< toot instance="fosstodon.org" id="114818281454845557" >}}

and I find I do the same thing and some more. I generate a default cover because I prefer to have a "standard" generated image or a specific image as the feature image. The image set in the settings is a default, a "if all other image fall use this" kind of stuff.

How I generate the post?

When I write a post I launch a makefile command