{{ if .IsHome }} {{ $.Scratch.Set "title" .Site.Title }} {{ if .Site.Params.subtitle }}{{ $.Scratch.Set "subtitle" .Site.Params.subtitle }}{{ end }} {{ if .Site.Params.bigimg }}{{ $.Scratch.Set "bigimg" .Site.Params.bigimg }}{{ end }} {{ else }} {{ $.Scratch.Set "title" .Title }} {{ if .Params.subtitle }}{{ $.Scratch.Set "subtitle" .Params.subtitle }}{{ end }} {{ if .Params.bigimg }}{{ $.Scratch.Set "bigimg" .Params.bigimg }}{{ end }} {{ end }} {{ $bigimg := $.Scratch.Get "bigimg" }} {{ if or $bigimg ($.Scratch.Get "title") }} {{ if $bigimg }}
{{ end }}
{{ if $bigimg }}
{{ $subtitle := $.Scratch.Get "subtitle" }}

{{ with $.Scratch.Get "title" }}{{.}}{{ else }}
{{ end }}

{{ if $subtitle }} {{ if eq .Type "page" }}
{{ $subtitle }} {{ else }}

{{ $subtitle }}

{{ end }} {{ end }} {{ if eq .Type "post" }} {{ partial "post_meta.html" . }} {{ end }}
{{end}}
{{ $subtitle := $.Scratch.Get "subtitle" }}

{{ with $.Scratch.Get "title" }}{{.}}{{ else }}
{{ end }}

{{ if $subtitle }} {{ if eq .Type "page" }}
{{ $subtitle }} {{ else }}

{{ $subtitle }}

{{ end }} {{ end }} {{ if eq .Type "post" }} {{ partial "post_meta.html" . }} {{ end }}
{{ else }}
{{ end }}