2020-03-09 16:56:13 +01:00
|
|
|
{{- partial "header.html" . }}
|
2019-03-31 14:32:06 +02:00
|
|
|
|
2020-03-09 16:56:13 +01:00
|
|
|
{{- $scope := . }}
|
|
|
|
{{- if .IsHome }}
|
|
|
|
{{- $scope = .Site }}
|
|
|
|
{{- else }}
|
2019-03-31 14:32:06 +02:00
|
|
|
<header class="page-header">
|
2020-03-09 16:56:13 +01:00
|
|
|
<h1>{{ if .Data.Term }}{{ .Data.Term }}{{ else }}Tags{{ end }}</h1>
|
2018-01-08 17:28:39 +01:00
|
|
|
</header>
|
2020-03-09 16:56:13 +01:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- $paginator := .Paginate (where $scope.RegularPages ".Params.type" "!=" "page") }}
|
2019-03-31 14:32:06 +02:00
|
|
|
|
2020-03-09 16:56:13 +01:00
|
|
|
{{- range $index, $page := $paginator.Pages }}
|
2019-03-31 14:32:06 +02:00
|
|
|
|
2020-03-09 16:56:13 +01:00
|
|
|
{{- $entryClass := "post-entry" }}
|
|
|
|
{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }}
|
|
|
|
{{- $entryClass = "first-entry" }}
|
|
|
|
{{- else if .Data.Term }}
|
|
|
|
{{- $entryClass = "post-entry tag-entry" }}
|
|
|
|
{{- end }}
|
|
|
|
<article class="{{ $entryClass }}">
|
2019-03-31 14:32:06 +02:00
|
|
|
<header class="entry-header">
|
|
|
|
<h2>{{ .Title }}</h2>
|
2018-01-08 17:28:39 +01:00
|
|
|
</header>
|
2019-03-31 14:32:06 +02:00
|
|
|
<section class="entry-content">
|
|
|
|
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
|
|
|
|
</section>
|
|
|
|
<footer class="entry-footer">
|
2019-08-19 22:12:49 +02:00
|
|
|
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
2018-01-08 17:28:39 +01:00
|
|
|
</footer>
|
2019-03-31 14:32:06 +02:00
|
|
|
<a class="entry-link" href="{{ .Permalink }}"></a>
|
2018-01-08 17:28:39 +01:00
|
|
|
</article>
|
2020-03-09 16:56:13 +01:00
|
|
|
{{- end }}
|
2019-03-31 14:32:06 +02:00
|
|
|
|
2020-03-09 16:56:13 +01:00
|
|
|
{{- if gt $paginator.TotalPages 1 }}
|
2019-03-31 14:32:06 +02:00
|
|
|
<footer class="page-footer">
|
2018-01-08 17:28:39 +01:00
|
|
|
<nav class="pagination">
|
2020-03-09 16:56:13 +01:00
|
|
|
{{- if $paginator.HasPrev }}
|
2019-04-01 10:00:48 +02:00
|
|
|
<a class="prev" href="{{ $paginator.Prev.URL }}">← {{ i18n "prev_page" }}</a>
|
2020-03-09 16:56:13 +01:00
|
|
|
{{- end }}
|
|
|
|
{{- if $paginator.HasNext }}
|
2019-04-01 10:00:48 +02:00
|
|
|
<a class="next" href="{{ $paginator.Next.URL }}">{{ i18n "next_page" }} →</a>
|
2020-03-09 16:56:13 +01:00
|
|
|
{{- end }}
|
2018-01-08 17:28:39 +01:00
|
|
|
</nav>
|
|
|
|
</footer>
|
2020-03-09 16:56:13 +01:00
|
|
|
{{- end }}
|
2019-03-31 14:32:06 +02:00
|
|
|
|
2020-03-09 16:56:13 +01:00
|
|
|
{{- partial "footer.html" . }}
|