mirror of
https://github.com/caressofsteel/hugo-story.git
synced 2025-02-28 10:31:18 +01:00
Make title, content, and button optional
This commit is contained in:
parent
e3e2b8d867
commit
9abdfd5630
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user