hugo-theme-hilfe/layouts/posts/list.html

27 lines
1.1 KiB
HTML
Raw Normal View History

2020-01-12 15:33:02 +01:00
{{ define "main" }}
{{ range .Paginator.Pages }}
2020-01-12 15:33:02 +01:00
<article class="gdoc-markdown gdoc-post">
<header class="gdoc-post__header">
<h1 class="gdoc-post__title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
<div class="gdoc-post__date">
<svg class="icon gdoc_date"><use xlink:href="#gdoc_date"></use></svg>
<time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
{{ if ne (.Lastmod.Format "2006-01-02") (.Date.Format "2006-01-02") }}
Updated on
{{ end }}
{{ .Lastmod.Format "Jan 2, 2006" }}
</time>
</div>
2020-01-12 15:33:02 +01:00
</header>
<section>
2020-01-12 15:33:02 +01:00
{{ .Summary }}
</section>
{{ if .Truncated }}
<div class="gdoc-post__readmore">
<a class="flex-inline align-center fake-link" title="Read full post" href="{{ .RelPermalink }}">Read full post</a>
2020-05-31 18:20:39 +02:00
</div>
{{ end }}
2020-01-12 15:33:02 +01:00
</article>
{{ end }}
{{ end }}