fix header image of blog posts sometimes being clipped
All checks were successful
/ build (pull_request) Successful in 40s
All checks were successful
/ build (pull_request) Successful in 40s
This commit is contained in:
parent
40bd847ba5
commit
d94b6f74dd
2 changed files with 16 additions and 9 deletions
|
|
@ -46,8 +46,10 @@
|
|||
{{- end }}
|
||||
</div>
|
||||
{{- if isset .Params "header" }}
|
||||
{{- $img := .Resources.GetMatch .Params.header.image }}
|
||||
<img class="container" src="{{ $img.RelPermalink }}" alt="{{ .Params.header.caption }}" />
|
||||
{{- end }}
|
||||
<div class="image-container">
|
||||
{{- $img := .Resources.GetMatch .Params.header.image }}
|
||||
<img src="{{ $img.RelPermalink }}" alt="{{ .Params.header.caption }}" />
|
||||
{{- end }}
|
||||
</div>
|
||||
</header>
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue