post section and taxonomy

This commit is contained in:
Gardient
2018-02-18 16:24:25 +02:00
parent b2198b31e1
commit 64b71057a6
7 changed files with 83 additions and 9 deletions

14
layouts/post/list.html Normal file
View File

@@ -0,0 +1,14 @@
{{ define "main" }}
<div class="header">
<h1>{{ .Title }}</h1>
<h2>{{ .Site.Params.subtitle }}</h2>
</div>
<div class="content">
{{ $paginator := .Paginate ( where .Data.Pages "Type" "post") }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
</div>
{{ end }}

17
layouts/post/single.html Normal file
View File

@@ -0,0 +1,17 @@
{{ define "main" }}
<div class="header">
<h1>{{ .Title }}</h1>
<h2>{{ .Description }}</h2>
</div>
<div class="content">
{{ partial "post-meta.html" . }}
{{ .Content }}
{{ partial "prev-next-post.html" . }}
{{ partial "disqus.html" . }}
</div>
{{ end }}