|
|
@ -1,26 +1,36 @@
|
|
|
|
{{ $page := . }}
|
|
|
|
{{ $page := . }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $title := $page.Title }}
|
|
|
|
{{ $titles := slice }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if and $page.IsHome (not $title) }}
|
|
|
|
{{ if $page.IsHome }}
|
|
|
|
{{ $title = site.Title }}
|
|
|
|
{{ if and $page.Title site.Title (eq $page.Title site.Title) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ $titles = slice (site.Title | markdownify | plainify | htmlUnescape) }}
|
|
|
|
|
|
|
|
{{ else }}
|
|
|
|
{{ $title = $title | markdownify | plainify | htmlUnescape }}
|
|
|
|
{{ if $page.Title }}
|
|
|
|
|
|
|
|
{{ $titles = $titles | append ($page.Title | markdownify | plainify | htmlUnescape) }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if site.Title }}
|
|
|
|
|
|
|
|
{{ $titles = $titles | append (site.Title | markdownify | plainify | htmlUnescape) }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ else }}
|
|
|
|
|
|
|
|
{{ with $page.Title }}
|
|
|
|
|
|
|
|
{{ $titles = slice (. | markdownify | plainify | htmlUnescape) }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $titles := slice $title }}
|
|
|
|
{{ range .Ancestors }}
|
|
|
|
|
|
|
|
{{ $title := .Title }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ range .Ancestors }}
|
|
|
|
{{ if and .IsHome (not $title) }}
|
|
|
|
{{ $title := .Title }}
|
|
|
|
{{ $title = site.Title }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if and .IsHome (not $title) }}
|
|
|
|
{{ $titles = $titles | append ($title | markdownify | plainify | htmlUnescape) }}
|
|
|
|
{{ $title = site.Title }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $titles = $titles | append ($title | markdownify | plainify | htmlUnescape) }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $title = delimit $titles " · " }}
|
|
|
|
{{ $title := delimit $titles " · " }}
|
|
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
{{ partial "paige/func-include.html" (dict "name" "head-first%s.html" "page" $page) }}
|
|
|
|
{{ partial "paige/func-include.html" (dict "name" "head-first%s.html" "page" $page) }}
|
|
|
|