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>
13 lines
315 B
Plaintext
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>
|
|
}
|