mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
feat: handle exif orientation
This commit is contained in:
parent
5370b41de8
commit
46fa092ad8
@ -20,8 +20,9 @@
|
||||
{{ $matches := "feature,cover" }}
|
||||
{{/* Use the value from front matter if present */}}
|
||||
{{ with .Params.featured_image }}
|
||||
{{ $filter := images.AutoOrient }}
|
||||
{{ $original := resources.Get . }}
|
||||
{{ with $original }}
|
||||
{{ with $original | images.Filter $filter }}
|
||||
{{ $processed := .Process "webp" }}
|
||||
{{ $linkToCover = $processed.RelPermalink }}
|
||||
{{ end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user