diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index d7fc951..ed02e57 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -10,7 +10,7 @@ - {{ .Title }} :: {{ .Site.Title }} + {{ partial "title-item.html" (dict "page" . "current" .)}}{{ .Site.Title }} {{ partial "metadata.html" . }} diff --git a/layouts/partials/title-item.html b/layouts/partials/title-item.html new file mode 100644 index 0000000..2cd62aa --- /dev/null +++ b/layouts/partials/title-item.html @@ -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 }}