Make theme fit more generic pages better
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user