show description of posts in index page, or summary if no description
This commit is contained in:
parent
ad98c7238d
commit
5aec7ac354
|
@ -32,7 +32,13 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="summary">{{ .Summary }}</div>
|
<div class="summary">
|
||||||
|
{{ with .Description }}
|
||||||
|
{{ . }}
|
||||||
|
{{ else }}
|
||||||
|
{{ .Summary }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue