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
parent198870333db17383563c7513d8b6ec9846449689 (diff)
add thumbnail_hide_post
-rw-r--r--README.md2
-rw-r--r--layouts/_default/single.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index cffe10d..d5e4715 100644
--- a/README.md
+++ b/README.md
@@ -162,8 +162,8 @@ menu: main # Optional, add page to a menu. Options: main, side, footer
# Theme-Defined params
thumbnail: "img/placeholder.jpg" # Thumbnail image
+thumbnail_hide_post: false # Hide thumbnail on single post view
lead: "Example lead - highlighted near the title" # Lead text
-comments: false # Enable Disqus comments for specific page
authorbox: true # Enable authorbox for specific page
pager: true # Enable pager navigation (prev/next) for specific page
toc: true # Enable Table of Contents for specific page
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>