Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pfadfinder-konstanz/hugo-dpsg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Mehl <mail@mehl.mx>2020-10-31 21:23:34 +0300
committerMax Mehl <mail@mehl.mx>2020-10-31 21:23:34 +0300
commite73ab513607dafbe0aa69a35c68610ad7bd108be (patch)
tree6793cec5598eec56ae39c6c5ae756f8d7abded2a /layouts
parent198870333db17383563c7513d8b6ec9846449689 (diff)
add thumbnail_hide_post
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 9c84ca4..b5ba965 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -10,7 +10,7 @@
<div class="post__meta meta">{{ . }}</div>
{{- end }}
</header>
- {{- if .Params.thumbnail }}
+ {{- if and (.Params.thumbnail) (not .Params.thumbnail_hide_post) }}
<figure class="post__thumbnail">
<img src="{{ .Params.thumbnail | relURL }}" alt="{{ .Title }}">
</figure>