{{ with .Parent -}} {{ partial "main/breadcrumb.html" . -}} <li class="breadcrumb-item"><a href="{{ .RelPermalink }}">{{ if .IsHome }}Home{{ else }}{{ .Title }}{{ end }}</a></li> {{ end -}}