Commit 9826a78d authored by Eugen Rochko's avatar Eugen Rochko

Only resize hero if resize param is not set to false

parent 25713ac8
Pipeline #77 passed with stages
in 1 second
......@@ -47,7 +47,10 @@
{{ $hero := .Page.Resources.GetMatch "hero" }}
{{ if $hero }}
{{ $hero := $hero.Resize "800x" }}
{{ if not $hero.Params.resize }}
{{ else }}
{{ $hero := $hero.Resize "800x" }}
{{ end }}
<div class="image-large">
<img src="{{ $hero.RelPermalink }}" alt="" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment