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>
12 lines
309 B
Plaintext
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>
|
|
}
|