Is adding custom html code to posts page possible? #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
At the bottom of each of my blog posts I have a link with my email address and one to the mastodon post where I announce the blog post. (https://82mhz.net/posts/2025/06/i-can-t-tell-reality-and-satire-apart-anymore/)
These two lines are in the html template for the blog post page, and the mastodon link is stored in the posts metadata and inserted into the template at build time.
Here's what the HTML snippet looks like:
Is there a way to recreate this in BSSG without touching the source code? I can't think of anything except to write this in the markdown of the post itself...
The footer can be customized, but currently there's no way to render the Mastodon link - I'll try to understand how we could do it, as it is a good idea.
To add a bit more context, both Hugo and Zola allow for custom metadata fields in the posts frontmatter. In Zola there's a field called "extra" and then underneath that you can define your own fields. This can then be picked up in a html template. Looks like this:
I think this is only really relevant though when templating is fully implemented, so maybe keep it in mind, but don't spend too much time on it.