Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ
14 lines
457 B
HTML
14 lines
457 B
HTML
{{/* list of {title, subtitle, text, image} */}}
|
|
<div class="gallery">
|
|
{{ range $item := . }}
|
|
<figure>
|
|
{{ with .image }}<a href="{{ . }}"><img src="{{ . }}" alt="{{ $item.title }}" loading="lazy"></a>{{ end }}
|
|
<figcaption>
|
|
{{ with .title }}<strong>{{ . }}</strong>{{ end }}
|
|
{{ with .subtitle }}<em>{{ . }}</em>{{ end }}
|
|
{{ with .text }}<div>{{ . | markdownify }}</div>{{ end }}
|
|
</figcaption>
|
|
</figure>
|
|
{{ end }}
|
|
</div>
|