aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
authorÓscar Nájera <hello@oscarnajera.com>2018-07-15 16:51:26 +0200
committerÓscar Nájera <hello@oscarnajera.com>2018-07-15 16:51:26 +0200
commit56a0d30ba4263e161979991472489fdc3a3a921f (patch)
tree42ecacefa853b236a748aa3021f06c2865550e84 /layouts/_default
parent2c34d6919cfae0ff6bd82932b0ae6aecfd445970 (diff)
downloadhugo-minimalist-theme-56a0d30ba4263e161979991472489fdc3a3a921f.tar.gz
hugo-minimalist-theme-56a0d30ba4263e161979991472489fdc3a3a921f.tar.bz2
hugo-minimalist-theme-56a0d30ba4263e161979991472489fdc3a3a921f.zip
Use coverimage as default in thumbnailimage
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/summary.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index 6348bbc..13c94e8 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -14,6 +14,10 @@
<nobr class="link">Continue reading →</nobr>
{{ with .Params.thumbnailImage }}
<img src="{{ . }}" class="mt2 br2">
+ {{ else }}
+ {{ if .Params.coverimage }}
+ <img src="{{ .Params.coverimage }}" class="mt2 br2" />
+ {{ end}}
{{ end }}
</footer>