Files
alexis.lahouze.org/layouts/section.html
T

30 lines
874 B
HTML

{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ $pages := .RegularPagesRecursive.ByDate.Reverse }}
{{ $pager := .Paginate $pages }}
{{ range $pager.Pages }}
<article>
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<p id="publication-information">Publié le {{ or .PublishDate .LastModified }}
{{ with or (.Param "author") (.Site.Param "author") }}par {{ . }}{{ end }}</p>
{{ with .ReadingTime }}
<p id="reading-time">Temps de lecture estimé : {{ . }} minute(s).</p>
{{ end }}
{{ .Summary }}
{{ if .Truncated }}
<p id="read-more"><a href="{{ .RelPermalink }}">Lire plus sur &laquo;&nbsp;{{ .Title }}&nbsp;&raquo;</a></p>
{{ end }}
</article>
{{ end }}
{{ partial "pagermenu.html" $pager }}
{{ end }}
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}