mirror of
https://github.com/caressofsteel/hugo-story.git
synced 2025-11-04 15:55:28 +01:00
Make title, content, and button optional
This commit is contained in:
@@ -3,10 +3,16 @@
|
|||||||
<img src="{{ .thumb }}" alt="" />
|
<img src="{{ .thumb }}" alt="" />
|
||||||
</a>
|
</a>
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<h3>{{ .title }}</h3>
|
{{ with .title }}
|
||||||
<p>{{ .content }}</p>
|
<h3>{{ . }}</h3>
|
||||||
|
{{ end }}
|
||||||
|
{{ with .content }}
|
||||||
|
<p>{{ . }}</p>
|
||||||
|
{{ end }}
|
||||||
|
{{ with .button }}
|
||||||
<ul class="actions fixed">
|
<ul class="actions fixed">
|
||||||
<li><span class="button small">{{ .button }}</span></li>
|
<li><span class="button small">{{ . }}</span></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
Reference in New Issue
Block a user