themes-editorial/image_override.templ
Alex Dunmow 1d9a4c8ce6 initial: theme plugin editorial
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/editorial.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:28 +08:00

12 lines
309 B
Plaintext

package main
// editorialImageComponent renders an image with an editorial figcaption.
templ editorialImageComponent(src, alt, caption string) {
<figure class="editorial-figure editorial-column">
<img src={ src } alt={ alt }/>
if caption != "" {
<figcaption>{ caption }</figcaption>
}
</figure>
}