Post refactor to hold everything its own (#88)

This commit is contained in:
Khosrow Moossavi
2018-10-03 14:06:20 -04:00
committed by Luiz F. A. de Prá
parent f834f18de2
commit 4426c889fd
11 changed files with 81 additions and 47 deletions

16
layouts/posts/list.html Normal file
View File

@@ -0,0 +1,16 @@
{{ define "title" }}
{{ .Title }} · {{ .Site.Title }}
{{ end }}
{{ define "content" }}
<section class="container list">
<h1 class="title">{{ .Title }}</h1>
<ul>
{{- range .Paginator.Pages -}}
{{- .Render "li" -}}
{{- end -}}
</ul>
{{ partial "pagination.html" . }}
</section>
{{ end }}