Make theme fit more generic pages better

This commit is contained in:
Joe Hutchinson
2018-12-18 09:43:27 -05:00
parent 503f0efe0d
commit 22273ffd5d
6 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
<p class="list-header-subtext">{{ .Description }}</p>
<h1 class="list-header-title">{{ .Title }}</h1>
</header>
{{ range where .Paginator.Pages "Params.list" true }}
{{ range where .Paginator.Pages "Params.list" "!=" false }}
{{ .Render "li" }}
{{ end }}
</main>

View File

@@ -7,7 +7,7 @@
{{ end }}
<article class="card-body">
<h2 class="card-title">{{ .Title }}</h2>
<p class="card-text">{{ .Description }}</p>
<p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" }}{{ else }}{{ .Summary }}{{ end }}</p>
<div class="card-subtext muted-text">
<p>Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>
<p>{{ range .Params.categories }}#{{ . }} {{ end }}</p>