vugo/layouts/_default/index.html

17 lines
929 B
HTML
Raw Permalink Normal View History

2022-08-18 14:17:23 +02:00
{{ define "main" }}
{{ .Content -}}
2022-09-26 19:31:12 +02:00
<div class="posts">
2023-03-23 11:31:44 +01:00
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }} {{ $PageContext := . }} {{ if .IsHome }} {{ $PageContext = .Site }} {{ end }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
<table class="post-entry-meta"> {{ range first 10 .Paginator.Pages }}
<tr>
<td><a href="{{ .RelPermalink }}">{{ .Title | markdownify}}</a></td>
<td>{{ .Params.Date.Format "2006-01-02" }}</td>
<td>{{ .Params.Author }}</td>
2023-03-23 11:31:44 +01:00
<td>{{ range .Params.tags }} #<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a>{{ end }}</td>
</tr> {{ end }}
</table>
2022-09-28 12:31:50 +02:00
<p><a class="button" href="/rambles">Read more</a></p>
</div>
2022-08-18 14:17:23 +02:00
</div>
{{ end }}