Initial commit
This commit is contained in:
parent
1228692325
commit
dbe51f693d
23 changed files with 1924 additions and 0 deletions
19
layouts/index.html
Normal file
19
layouts/index.html
Normal 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 »</a>
|
||||
</article>
|
||||
<br>
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
{{ end }}
|
Reference in a new issue