hugo-geekdoc/layouts/posts/list.html

24 lines
789 B
HTML
Raw Normal View History

2020-01-12 14:33:02 +00:00
{{ define "main" }}
{{ $dateFormat := default "January 2, 2006" .Site.Params.GeekdocDateFormat }}
{{ range sort .Paginator.Pages }}
<article class="gdoc-markdown gdoc-post">
<header>
<h1 class="gdoc-post__title">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h1>
</header>
<h5>
<strong>{{ .Date.Format $dateFormat }}</strong>
</h5>
2020-05-31 16:20:39 +00:00
<div>
2020-01-12 14:33:02 +00:00
{{ .Summary }}
{{ if .Truncated }}
<a class="gdoc-post__readmore" title="Read full post" href="{{ .RelPermalink }}">
Read more
</a>
{{ end }}
2020-05-31 16:20:39 +00:00
</div>
2020-01-12 14:33:02 +00:00
</article>
{{ end }}
{{ end }}