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

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaud LeprĂȘtre <thibaud.lepretre@gmail.com>2017-11-01 12:04:39 +0300
committerThibaud LeprĂȘtre <thibaud.lepretre@gmail.com>2017-11-01 12:04:39 +0300
commit26b826f96930b16a2c81c403ac00892c2c28107d (patch)
treec9e141fcf901338f381788ed1917c8267bcd4f0e /layouts/_default/summary.html
parented60d59b0e7e0b5c464429ee2fe60235982df529 (diff)
Global param thumbnailimageposition was ignored
Fixes #179
Diffstat (limited to 'layouts/_default/summary.html')
-rw-r--r--layouts/_default/summary.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index 71b713f..e78db06 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -17,8 +17,8 @@
{{ end }}
{{ end }}
{{ end }}
-{{ if and (.Scratch.Get "thumbnailImage") .Params.thumbnailimageposition }}
- {{ .Scratch.Set "thumbnailImagePosition" .Params.thumbnailimageposition }}
+{{ if or .Params.thumbnailimageposition .Site.Params.thumbnailimageposition }}
+ {{ .Scratch.Set "thumbnailImagePosition" (.Params.thumbnailimageposition | default .Site.Params.thumbnailimageposition) }}
{{ else }}
{{ .Scratch.Set "thumbnailImagePosition" "bottom" }}
{{ end }}