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:
parent
a5113e5008
commit
0df40cf71e
@ -1,6 +1,5 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ $data := .Data }}
|
{{ $data := .Data }}
|
||||||
|
|
||||||
<div class="container" role="main">
|
<div class="container" role="main">
|
||||||
<article class="post-preview">
|
<article class="post-preview">
|
||||||
<div class="list-group col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3">
|
<div class="list-group col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3">
|
||||||
|
@ -7,13 +7,13 @@
|
|||||||
{{.}}
|
{{.}}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="posts-list">
|
<div class="posts-list">
|
||||||
{{ $pag := .Paginate (where .Data.Pages "Type" "post") }}
|
{{ $pag := .Paginate (where .Data.Pages "Type" "post") }}
|
||||||
{{ range $pag.Pages }}
|
{{ range $pag.Pages }}
|
||||||
<article class="post-preview">
|
<article class="post-preview">
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
<h2 class="post-title">{{ .Title }}</h2>
|
<h2 class="post-title">{{ .Title }}</h2>
|
||||||
|
|
||||||
{{ if .Params.subtitle }}
|
{{ if .Params.subtitle }}
|
||||||
<h3 class="post-subtitle">
|
<h3 class="post-subtitle">
|
||||||
{{ .Params.subtitle }}
|
{{ .Params.subtitle }}
|
||||||
@ -38,7 +38,6 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="container" role="main">
|
<div class="container" role="main">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
@ -12,6 +12,6 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
<article role="main" class="blog-post">
|
<article role="main" class="blog-post">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
@ -28,7 +28,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user