Add exif hero images

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-09-13 22:32:16 +00:00
parent 08b8041c43
commit 6353c33ae2
7 changed files with 64 additions and 8 deletions

View File

@@ -4,5 +4,12 @@
{{ $hero := partial "components/hero/process.html" .Params.hero }}
{{ $data := partial "components/image/process.html" (dict "page" .Page "src" $hero.src) }}
{{ partial "components/image/index.html" (merge $data $hero) }}
{{ $final := merge $data $hero }}
{{ if $hero.exif }}
{{ $caption := partial "components/image/exif.html" $data.original }}
{{ $final = merge $final (dict "caption" $caption) }}
{{ end }}
{{ partial "components/image/index.html" $final }}
</section>