adds support to .Description #30

This commit is contained in:
Huy Tran 2018-08-30 08:51:30 +07:00
parent 330385ccaf
commit 6821a0e0e1

View file

@ -13,7 +13,11 @@
<span class="item__date">
{{ .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") }}
</span>
{{ if .Description }}
{{ .Description }}
{{ else }}
{{ .Summary }}
{{ end }}
{{ if .Truncated }}
<div class="read-more-link">
<a href="{{ .RelPermalink }}">Read More…</a>