diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..ee21374 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,10 @@ + + + + + {{ partial "title-item.html" . }}{{ .Site.Title }} + + + {{ block "main" . }}{{ end }} + + diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 72d531c..594f163 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,9 +1,4 @@ - - - - {{.Title}} - - +{{ define "main" }} {{ partial "content.html" . }} @@ -20,5 +15,4 @@ {{ partial "list_item.html" . }} {{ end }} {{ end }} - - +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7241808..d2ab006 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,9 +1,3 @@ - - - - {{.Title}} - - +{{ define "main" }} {{ partial "content.html" . }} - - +{{ end }} diff --git a/layouts/partials/title-item.html b/layouts/partials/title-item.html new file mode 100644 index 0000000..fef1c05 --- /dev/null +++ b/layouts/partials/title-item.html @@ -0,0 +1,5 @@ +{{ .Title }} :: + +{{ if .Parent }}{{ if not .Parent.IsHome }} + {{ partial "title-item.html" .Parent }} +{{ end }}{{ end }}