File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,19 @@ <h2 class="single-subtitle animated fadeInDown faster">{{ . }}</h2>
6565 {{- end -}}
6666
6767 {{- /* Featured image */ -}}
68- {{- $image := $params.featuredimage -}}
69- {{- with .Resources.GetMatch "featured-image" -}}
70- {{- $image = .RelPermalink -}}
68+ {{- $image := "" -}}
69+ {{- with .Params.featuredimage | default .Params.featuredImage -}}
70+ {{- $image = . | relURL -}}
71+ {{- else -}}
72+ {{- with .Resources.GetMatch "featured-image" -}}
73+ {{- $image = .RelPermalink -}}
74+ {{- else -}}
75+ {{- range .Params.resources -}}
76+ {{- if eq .name "featured-image" -}}
77+ {{- $image = .src | relURL -}}
78+ {{- end -}}
79+ {{- end -}}
80+ {{- end -}}
7181 {{- end -}}
7282 {{- with $image -}}
7383 < div class ="featured-image ">
You can’t perform that action at this time.
0 commit comments