From 7b46565f2665e79222a7ee29a4a02d34e5ed7f1a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 19 Aug 2018 11:35:54 +0100 Subject: [PATCH] Simply title partial --- layouts/_default/baseof.html | 2 +- layouts/partials/title-item.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 4f65095..f7383b2 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -11,7 +11,7 @@ {{ partial "style.html" "scss/style.scss" }} - {{ partial "title-item.html" (dict "page" . "current" .)}}{{ .Site.Title }} + {{ partial "title-item.html" . }}{{ .Site.Title }} {{ partial "metadata.html" . }} diff --git a/layouts/partials/title-item.html b/layouts/partials/title-item.html index 51c4262..7533f60 100644 --- a/layouts/partials/title-item.html +++ b/layouts/partials/title-item.html @@ -1,5 +1,5 @@ -{{ .page.Title }} :: +{{ .Title }} :: -{{ if .page.Parent }}{{ if not .page.Parent.IsHome }} -{{ partial "title-item.html" (dict "page" .page.Parent "current" .current) }} +{{ if .Parent }}{{ if not .Parent.IsHome }} + {{ partial "title-item.html" .Parent }} {{ end }}{{ end }}