mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-29 06:30:20 +00:00
26 lines
621 B
HTML
26 lines
621 B
HTML
{{ define "main" }}
|
|
{{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }}
|
|
{{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }}
|
|
{{ range sort .Paginator.Pages }}
|
|
<article class="markdown">
|
|
<h2>
|
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
|
</h2>
|
|
<h5>
|
|
<strong>{{ .Date.Format $dateFormat }}</strong>
|
|
</h5>
|
|
<p>
|
|
{{- .Summary -}}
|
|
{{ if .Truncated }}
|
|
<a href="{{ .RelPermalink }}">...</a>
|
|
{{ end }}
|
|
</p>
|
|
</article>
|
|
{{ end }}
|
|
{{ template "_internal/pagination.html" . }}
|
|
{{ end }}
|
|
|
|
{{ define "toc" }}
|
|
|
|
{{ end }}
|