46 lines
1.3 KiB
HTML
46 lines
1.3 KiB
HTML
{{ define "title"}}
|
|
{{ .Title }} | {{ .Site.Params.author.name }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
|
|
<div>
|
|
<div class="listHeader">
|
|
<h1>Blog <a href="/blog/index.xml">/rss.xml</a></h1><p>
|
|
</div>
|
|
|
|
{{ with .Content }}
|
|
<div class="listContent">
|
|
{{- . -}}
|
|
</div>
|
|
{{ end }}
|
|
|
|
<div>
|
|
{{ $pages := where site.RegularPages "Type" "blog" }}
|
|
{{ $paginator := .Paginate $pages.ByDate.Reverse 10 }}
|
|
|
|
{{ range $paginator.Pages.ByDate.Reverse }}
|
|
|
|
<a class="postListLink" href="{{ .Permalink }}">
|
|
<!-- [html-validate-disable-next prefer-native-element] -->
|
|
<div class="postListItem" role="listitem">
|
|
<div class="postHeader">
|
|
<span class="postTitle">{{ .Title }}</span></a>
|
|
{{ $formattedDate := .Date.Format "2006-01-02" }}
|
|
<time class="postDate" datetime="{{ $formattedDate }}">{{ .Date | time.Format ":date_long" }}</time>
|
|
</div>
|
|
<div class="postExcerpt">
|
|
<p>{{ .Summary }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
{{ range .Pages.ByWeight }}
|
|
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
|
{{ end }}
|
|
|
|
{{end}}
|
|
{{ template "partials/pagination.html" . }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
|