mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-04 20:30:40 +00:00
22 lines
777 B
HTML
22 lines
777 B
HTML
{{ 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>
|
|
<div class="gdoc-post__date">{{ .Date.Format $dateFormat }}</div>
|
|
</header>
|
|
<div>
|
|
{{ .Summary }}
|
|
{{ if .Truncated }}
|
|
<a class="gdoc-post__readmore" title="Read full post" href="{{ .RelPermalink }}">
|
|
Read full post
|
|
</a>
|
|
{{ end }}
|
|
</div>
|
|
</article>
|
|
{{ end }}
|
|
{{ end }}
|