1. 🏠 Home
  2. {{- $.Scratch.Set "url" "" -}} {{- $taxonomy := .Data.Plural -}} {{- range $index, $element := (split (trim .RelPermalink "/") "/") -}} {{- $.Scratch.Add "url" (print "/" . ) -}} {{- if eq $index 0 -}} {{- if eq . "tags" -}}
  3. Tags
  4. {{- else if eq . "categories" -}}
  5. Categories
  6. {{- else -}} {{- $section := $.Site.GetPage "section" . -}} {{- if $section -}}
  7. {{ $section.Title }}
  8. {{- else -}}
  9. {{ humanize . }}
  10. {{- end -}} {{- end -}} {{- else -}} {{- if eq $taxonomy "tags" -}}
  11. {{ humanize . }}
  12. {{- else if eq $taxonomy "categories" -}}
  13. {{ humanize . }}
  14. {{- else -}} {{- $currentPage := $.Site.GetPage ($.Scratch.Get "url") -}} {{- if $currentPage -}} {{- if $currentPage.IsPage -}}
  15. {{ $currentPage.Title }}
  16. {{- else -}}
  17. {{ $currentPage.Title }}
  18. {{- end -}} {{- else -}}
  19. {{ humanize . }}
  20. {{- end -}} {{- end -}} {{- end -}} {{- end -}}