Merge pull request #59 from pintergreg/picture_optional_fields

Make title, content, and button fields of picture optional
This commit is contained in:
⚔️ DR ⚔️
2025-11-01 12:50:11 -04:00
committed by GitHub

View File

@@ -3,10 +3,16 @@
<img src="{{ .thumb }}" alt="" />
</a>
<div class="caption">
<h3>{{ .title }}</h3>
<p>{{ .content }}</p>
{{ with .title }}
<h3>{{ . }}</h3>
{{ end }}
{{ with .content }}
<p>{{ . }}</p>
{{ end }}
{{ with .button }}
<ul class="actions fixed">
<li><span class="button small">{{ .button }}</span></li>
<li><span class="button small">{{ . }}</span></li>
</ul>
{{ end }}
</div>
</article>