{{ define "main" }} {{ with .Site.Params.hero.image }}
{{ $.Site.Title }} {{ with $.Site.Params.hero.quote }}

{{ . }}

{{ with $.Site.Params.hero.quote_attribution }} — {{ . }} {{ end }}
{{ end }}
{{ else }}

{{ .Site.Params.logo.title | default .Site.Title }}

{{ .Site.Params.motto }}

{{ end }}
    {{ $paginator := .Paginate (where .Site.RegularPages "Section" "posts") }} {{ range $paginator.Pages }}
  1. {{ .Title }}

    {{ with .Params.palace_rooms }} {{ range . }}{{ . }}{{ end }} {{ end }} {{ with .Params.characters }} {{ range . }}{{ . }}{{ end }} {{ end }} {{ with .Params.categories }} {{ range . }}{{ . }}{{ end }} {{ end }}
    {{ with .Params.summary }}

    {{ . }}

    {{ else }} {{ with .Summary }}

    {{ . | plainify | truncate 200 }}

    {{ end }} {{ end }}
  2. {{ end }}
{{ template "_internal/pagination.html" . }}
{{ end }}