2022-08-18 14:17:23 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
{{ .Content -}}
|
2022-09-26 19:31:12 +02:00
|
|
|
<div class="posts">
|
2022-08-18 14:52:42 +02:00
|
|
|
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
|
|
|
|
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }}
|
2022-08-18 14:17:23 +02:00
|
|
|
|
|
|
|
{{ $PageContext := . }}
|
|
|
|
{{ if .IsHome }}
|
|
|
|
{{ $PageContext = .Site }}
|
|
|
|
{{ end }}
|
|
|
|
|
2022-09-26 19:23:45 +02:00
|
|
|
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
2022-09-27 23:04:06 +02:00
|
|
|
<table class="post-entry-meta">
|
|
|
|
{{ range first 5 .Paginator.Pages }}
|
2022-09-26 19:23:45 +02:00
|
|
|
<tr>
|
|
|
|
<td><a href="{{ .RelPermalink }}">{{ .Title | markdownify}}</a></td>
|
|
|
|
<td>{{ .Params.Date.Format "2006-01-02" }}</td>
|
|
|
|
<td>{{ .Params.Author }}</td>
|
|
|
|
<td > {{ range .Params.tags }} #<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a> {{ end }}</td>
|
|
|
|
<!--
|
|
|
|
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
|
|
|
|
<td class="post-reading-time">- {{ .ReadingTime }} min read ({{ .WordCount }} words)</td>
|
2022-08-18 14:17:23 +02:00
|
|
|
{{ end }}
|
2022-09-26 19:23:45 +02:00
|
|
|
-->
|
|
|
|
</tr>
|
2022-08-18 14:17:23 +02:00
|
|
|
{{ end }}
|
2022-09-26 19:23:45 +02:00
|
|
|
</table>
|
2022-09-28 12:31:50 +02:00
|
|
|
<p><a class="button" href="/rambles">Read more</a></p>
|
2022-09-26 19:23:45 +02:00
|
|
|
</div>
|
2022-08-18 14:17:23 +02:00
|
|
|
</div>
|
|
|
|
{{ end }}
|