You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
965 B
HTML

{{ $page := . }}
{{ $title := $page.Title }}
{{ if and $page.IsHome (not $title) }}
{{ $title = $page.Param "paige.title" | default (site.Title) }}
{{ end }}
{{ $title = $title | markdownify | plainify | htmlUnescape }}
{{ $titles := slice $title }}
{{ range .Ancestors }}
{{ $title := .Title }}
{{ if and .IsHome (not $title) }}
{{ $title = $page.Param "paige.title" | default (site.Title) }}
{{ end }}
{{ $titles = $titles | append ($title | markdownify | plainify | htmlUnescape) }}
{{ end }}
{{ $title = delimit $titles " · " }}
<head>
{{ partial "paige/func-include.html" (dict "name" "head-first%s.html" "page" $page) }}
{{ partial "paige/metas.html" $page }}
{{ with $title }}
<title>{{ . }}</title>
{{ end }}
{{ partial "paige/links.html" $page }}
{{ partial "paige/style.html" $page }}
{{ partial "paige/func-include.html" (dict "name" "head-last%s.html" "page" $page) }}
</head>