1
Fork 0

Show recursive path in page title

This commit is contained in:
Jake Howard 2017-12-27 22:41:47 +00:00
parent c51583ade8
commit fb63c3395f
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 6 additions and 1 deletions

View file

@ -10,7 +10,7 @@
<link rel="icon" type="image/png" href="{{ .Site.BaseURL }}/img/logo-transparent.png" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
<title>{{ .Title }} :: {{ .Site.Title }}</title>
<title>{{ partial "title-item.html" (dict "page" . "current" .)}}{{ .Site.Title }}</title>
{{ partial "metadata.html" . }}
</head>

View file

@ -0,0 +1,5 @@
{{ .page.Title }} {{ if ne .age .current }}::{{ end }}
{{ if .page.Parent }}{{ if not .page.Parent.IsHome }}
{{ partial "title-item.html" (dict "page" .page.Parent "current" .current) }}
{{ end }}{{ end }}