You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.7 KiB
HTML

<div class="box">
{{ $pages := .Paginator.Pages }}
{{ $len := (len $pages) }}
{{ range $index, $key := $pages }}
{{ if .Params.images }}
<div class="row no-collapse 50% uniform">
<div class="col-6 col-12-mobilep">
<a href="{{ .Permalink }}">{{ if .Draft }}DRAFT: {{end}}{{ .Title | markdownify }}</a>
{{ with .Params.subtitle }} | {{ . | markdownify }} | {{ end }}
{{ with .Params.passage }} | {{ . | markdownify }} | {{ end }}
<time class="date-meta">{{ .Date.Format "Jan 2, 2006" }}</time>
<br>
{{ .Summary | plainify | safeHTML }}
{{ if .Truncated }}
<a class="button small alt" href="{{ .Permalink }}" >
Read more<i class="fas fa-angle-double-right"></i>
</a>
{{ end }} {{/* if */}}
</div>
<div class="col-6 col-12-mobilep">
<span class="image fit">
<a href="{{ .Permalink }}">
<img src="{{ index .Params.images 0 | absURL }}"></img>
</a/>
</span>
</div>
</div>
{{ else }}
<div>
<a href="{{ .Permalink }}">{{ if .Draft }}DRAFT: {{end}}{{ .Title | markdownify }}</a>
<time class="date-meta">({{ .Date.Format "Jan 2, 2006" }})</time>
<br>
{{ .Summary | plainify | safeHTML }}
{{ if .Truncated }}
<a class="button small alt" href="{{ .Permalink }}" >
Read more<i class="fas fa-angle-double-right"></i>
</a>
{{ end }} {{/* if */}}
</div>
{{ end }}{{/* if */}}
{{ if lt (add $index 1) $len }}
<hr />
{{ end }}{{/* if */}}
{{ end }} {{/* range */}}
{{ template "_internal/pagination.html" . }}
</div>