blog: Use page resources for header image
This commit is contained in:
parent
63d29bb1e2
commit
8fce40f91d
|
@ -38,6 +38,9 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
{{ if isset .Params "header" }} <img class="container" src="{{ .Params.header.image }}" alt="{{ .Params.header.caption }}" /> {{ end }}
|
{{- if isset .Params "header" }}
|
||||||
|
{{- $img := .Resources.GetMatch .Params.header.image }}
|
||||||
|
<img class="container" src="{{ $img.RelPermalink }}" alt="{{ .Params.header.caption }}" />
|
||||||
|
{{- end }}
|
||||||
</header>
|
</header>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue