Initial commit

This commit is contained in:
Elnu 2022-06-10 12:27:13 -07:00
parent 1228692325
commit dbe51f693d
23 changed files with 1924 additions and 0 deletions

19
layouts/index.html Normal file
View file

@ -0,0 +1,19 @@
{{ define "main" }}
{{ partial "pagination.html" . }}
{{ if eq .Paginator.PageNumber 1 }}
<h1>{{ .Title }}</h1>
{{ .Content }}
<hr>
{{ end }}
{{ range .Paginator.Pages }}
<article>
<header>
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
{{ partial "metadata.html" . }}
</header>
{{ .Content | truncate 500 }} <a href="{{ .RelPermalink }}">Read more &raquo;</a>
</article>
<br>
{{ end }}
{{ partial "pagination.html" . }}
{{ end }}