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

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

13 lines
315 B
Plaintext

package main
templ brutalistImageComponent(src, alt, caption string) {
<figure class="brutalist-figure" style="margin: 2rem 0;">
if src != "" {
<img src={ src } alt={ alt } style="display: block; width: 100%; height: auto;"/>
}
if caption != "" {
<figcaption>{ caption }</figcaption>
}
</figure>
}