Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

22 lines
607 B

2 years ago
{{ define "main" }}
{{ $pagination := .Paginator }}
{{ partial "pagination.html" $pagination }}
{{ if eq $pagination.PageNumber 1 }}
2 years ago
<h1>{{ .Title }}</h1>
{{ partial "content.html" .Content }}
2 years ago
<hr>
{{ end }}
{{ range $pagination.Pages }}
2 years ago
<article>
<header>
<h2><a href="{{ .RelPermalink }}">{{ partial "content.html" .Title }}</a></h2>
2 years ago
{{ partial "metadata.html" . }}
</header>
<br>
{{ partial "content.html" .Content | truncate 500 }} <a href="{{ .RelPermalink }}">Read more &raquo;</a>
2 years ago
</article>
<br>
{{ end }}
{{ partial "pagination.html" $pagination }}
2 years ago
{{ end }}