* feat: use images.AutoOrient in `helper/image` closes https://github.com/CaiJimmy/hugo-theme-stack/issues/1292 * fix: check if IsImageResourceProcessable before using filter * remove local field * feat: add configurable image auto-orientation via a new `autoOrient` parameter in site configuration
4 lines
241 B
HTML
4 lines
241 B
HTML
{{ $image := partial "helper/image" (dict "Image" .Params.image "Resources" .Resources "Context" .) }}
|
|
<article class="{{ if $image }}has-image{{ end }}">
|
|
{{ partial "article/components/header" (dict "Page" . "IsList" true) }}
|
|
</article> |