summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/conspiracy/layouts/index.html6
-rw-r--r--themes/conspiracy/layouts/partials/card.html2
2 files changed, 4 insertions, 4 deletions
diff --git a/themes/conspiracy/layouts/index.html b/themes/conspiracy/layouts/index.html
index ab68f27..808ddc8 100644
--- a/themes/conspiracy/layouts/index.html
+++ b/themes/conspiracy/layouts/index.html
@@ -9,10 +9,10 @@
</div>
{{- end }}
- {{- range site.Params.homepage_categories }}
+ {{- range $config := site.Params.homepage_categories }}
<h2>{{ .title }}</h2>
- {{- range first .count (where site.RegularPages "Section" "==" .key) }}
- {{ partial "card.html" . }}
+ {{- range $entry := first $config.count (where site.RegularPages "Section" "==" $config.key) }}
+ {{ partial "card.html" $entry }}
{{- end }}
<div class="pagination-links">
diff --git a/themes/conspiracy/layouts/partials/card.html b/themes/conspiracy/layouts/partials/card.html
index 65ea2e7..d0d94c3 100644
--- a/themes/conspiracy/layouts/partials/card.html
+++ b/themes/conspiracy/layouts/partials/card.html
@@ -1,6 +1,6 @@
<div class="card">
{{- if .Title }}<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>{{- end }}
- {{- if .Date }}<strong>{{ .Date.Format "2006-01-02" }}</strong>{{- end }}
+ {{- if and .Date (not (isset (index .Ancestors 0).Params "hide_date")) }}<strong>{{ .Date.Format "2006-01-02" }}</strong>{{- end }}
<div class="summary">
{{ .Summary | safeHTML }}