diff options
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 |
commit | 56a0d30ba4263e161979991472489fdc3a3a921f (patch) | |
tree | 42ecacefa853b236a748aa3021f06c2865550e84 /layouts | |
parent | 2c34d6919cfae0ff6bd82932b0ae6aecfd445970 (diff) | |
download | hugo-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')
-rw-r--r-- | layouts/_default/summary.html | 4 |
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> |