github.io/layouts/partials/summary.html

14 lines
456 B
HTML

{{- $pubdate := .PublishDate.Format "02/01/2006" }}
{{- $lastmod := .Lastmod.Format "02/01/2006" }}
<article>
<div>
<!-- <h3><a href='{{ .RelPermalink }}'>{{ .Title }}</a></h3> -->
<h3>{{ .Title | humanize }}</h3>
{{ i18n "published" }} {{ $pubdate }}
{{ if ne $pubdate $lastmod }}
{{ i18n "modified" }} {{ $lastmod }}
{{ end }}<br />
{{ .Summary }}
{{ if .Truncated }}{{ i18n "readMore" }}...{{ end }}
</div>
</article>