18 lines
586 B
HTML
18 lines
586 B
HTML
<section class="hero">
|
|
<h1 class="title">{{ .Title }}</h1>
|
|
{{ partial "components/meta/index.html" . }}
|
|
|
|
{{ $hero := partial "components/hero/process.html" .Params.hero }}
|
|
{{ if $hero.src }}
|
|
{{ $data := partial "components/image/process.html" (dict "page" .Page "src" $hero.src) }}
|
|
|
|
{{ $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 }}
|
|
{{ end }}
|
|
</section>
|