Fix template indentation

Fix indentation for templates changed in 3cec621. This is a
separate commit as it makes for diffs that are easier to read.
This commit is contained in:
Jack Taylor 2017-04-10 18:41:02 +09:00
parent a5113e5008
commit 0df40cf71e
7 changed files with 133 additions and 135 deletions

View File

@ -1,6 +1,5 @@
{{ define "main" }}
{{ $data := .Data }}
<div class="container" role="main">
<article class="post-preview">
<div class="list-group col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3">

View File

@ -7,13 +7,13 @@
{{.}}
</div>
{{ end }}
<div class="posts-list">
{{ $pag := .Paginate (where .Data.Pages "Type" "post") }}
{{ range $pag.Pages }}
<article class="post-preview">
<a href="{{ .Permalink }}">
<h2 class="post-title">{{ .Title }}</h2>
{{ if .Params.subtitle }}
<h3 class="post-subtitle">
{{ .Params.subtitle }}
@ -38,7 +38,6 @@
{{ end }}
</span>
{{ end }}
</article>
{{ end }}
</div>