github.io/layouts/partials/summary.html

17 lines
467 B
HTML
Raw Normal View History

2022-03-30 15:06:21 +00:00
{{- $pubdate := .PublishDate.Format "02/01/2006" }}
{{- $lastmod := .Lastmod.Format "02/01/2006" }}
<article>
<div>
2022-03-30 15:06:21 +00:00
<h3><a href='{{ .RelPermalink }}'>{{ .Title }}</a></h3>
{{ i18n "published" }} {{ $pubdate }}
{{ if ne $pubdate $lastmod }}
{{ i18n "modified" }} {{ $lastmod }}
{{ end }}<br />
{{ .Summary }}
</div>
{{ if .Truncated }}
<div>
2022-03-30 15:06:21 +00:00
<a href='{{ .RelPermalink }}'>{{ i18n "readMore" }}…</a>
</div>
{{ end }}
</article>