{{ $skip_next := false }}
{{ if not .IsHome }}
{{ if .Params.skipparent }}
{{ $skip_next = true }}
{{ end }}
{{ $len := len .Ancestors }}
{{ $i := 0 }}
{{- range .Ancestors.Reverse }}
{{ $end := false }}
{{ if eq (add $i 1) $len }}
{{ $end = true }}
{{ end }}
{{ $needs_skip := $skip_next }}
{{ if not (and $needs_skip $end) }}
{{ if eq .Title "Arttags" }}
Art
/
Tags
/
{{ else }}
{{ if eq .Title "Projtags" }}
Software
/
Tags
/
{{ else }}
{{ if and (eq .Title "Tags") (hasPrefix $.Path "/tags/") }}
{{ if not (and $needs_skip $end) }}
Blog
/
Tags
/
{{ end }}
{{ else }}
{{ if and (eq .Title "Series") (hasPrefix $.Path "/series/") }}
{{ if not (and $needs_skip $end) }}
Blog
/
Series
/
{{ end }}
{{ else }}
{{ if and (eq .Title "Characters") (hasPrefix $.Path "/characters/") }}
Art
/
Characters
/
{{ else }}
{{ if eq .Title "Characters" }}
Characters
/
{{ else }}
{{ if not (and $needs_skip $end) }}
{{ .Title }}
/
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ else }}
{{ if $.Params.trueparent }}
{{ with $.Site.GetPage ($.Params.trueparent) }}
{{ .Title }}
/
{{ end }}
{{ end }}
{{ end }}
{{ $i = add $i 1 }}
{{- end }}
{{ end }}