mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-28 07:30:37 +00:00
29 lines
948 B
HTML
29 lines
948 B
HTML
{{ define "main" }}
|
|
{{ $dateFormat := default "January 2, 2006" .Site.Params.GeekdocDateFormat }}
|
|
{{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }}
|
|
|
|
{{ 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>
|
|
<section>
|
|
{{ .Summary }}
|
|
{{ if .Truncated }}
|
|
<a class="gdoc-post__readmore" title="Read full post" href="{{ .RelPermalink }}">
|
|
Read more
|
|
</a>
|
|
{{ end }}
|
|
</section>
|
|
</article>
|
|
{{ end }}
|
|
|
|
<!-- TODO: FIXME -->
|
|
{{ template "_internal/pagination.html" . }}
|
|
{{ end }}
|