Show recursive path in page title
This commit is contained in:
parent
c51583ade8
commit
fb63c3395f
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
||||
|
|
5
layouts/partials/title-item.html
Normal file
5
layouts/partials/title-item.html
Normal 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 }}
|
Loading…
Reference in a new issue