Make use of the base template

This commit is contained in:
digitalcraftsman 2017-09-07 21:41:16 +02:00
parent 50fec3e32d
commit 82832c1244
5 changed files with 42 additions and 69 deletions

View file

@ -1,26 +1,13 @@
{{ partial "head.html" . }}
<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
{{ partial "sidebar.html" . }}
<div class="content container">
{{ define "main" -}}
<div class="posts">
{{ range .Data.Pages }}
<div class="post">
<h1 class="post-title">
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
</h1>
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
{{ .Content }}
</div>
{{ end }}
{{ range .Data.Pages -}}
<div class="post">
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h1>
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
{{ .Content }}
</div>
{{- end }}
</div>
</body>
</html>
{{- end }}