diff --git a/exampleSite/content/more/_index.en.md b/exampleSite/content/more/_index.en.md index b6a8131e90..8f92b7a90e 100644 --- a/exampleSite/content/more/_index.en.md +++ b/exampleSite/content/more/_index.en.md @@ -1,9 +1,9 @@ +++ title = "More" [_build] - render = "always" + render = "never" list = "never" - publishResources = true + publishResources = false +++ {{%children containerstyle="div" style="h2" description="true" %}} diff --git a/exampleSite/content/more/_index.pir.md b/exampleSite/content/more/_index.pir.md index 36ed2acc2b..c59c6b7e5f 100644 --- a/exampleSite/content/more/_index.pir.md +++ b/exampleSite/content/more/_index.pir.md @@ -1,8 +1,8 @@ +++ title = "Morrre" [_build] - render = "always" + render = "never" list = "never" - publishResources = true + publishResources = false +++ {{< piratify >}} \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index ef40e6d5e4..94d324b37e 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -85,9 +85,15 @@ {{- define "breadcrumb" }} {{- $parent := .page.Parent }} - {{- $depth := add .depth 1 }} + {{- $ispublished := gt (int (len .page.Permalink)) 0 }} + {{- $depth := .depth }} + {{- if $ispublished }} + {{- $depth = add $depth 1 }} + {{- end }} {{- if $parent }} {{- template "breadcrumb" dict "page" $parent "depth" $depth }} {{- end }} + {{- if $ispublished }}
  • {{ .page.Title }}{{ if .depth }} > {{ end }}
  • + {{- end }} {{- end }} \ No newline at end of file