show description of posts in index page, or summary if no description

This commit is contained in:
leafee98 2023-09-11 14:34:59 +08:00
parent ad98c7238d
commit 5aec7ac354

View file

@ -32,7 +32,13 @@
{{ end }}
</div>
<div class="summary">{{ .Summary }}</div>
<div class="summary">
{{ with .Description }}
{{ . }}
{{ else }}
{{ .Summary }}
{{ end }}
</div>
</section>
{{ end }}