Fixed breadcrumbs to support 2 more layers of depth

This commit is contained in:
Julien Dessaux 2021-05-02 20:41:39 +02:00
parent 8cfd5fe65e
commit 03075e1c46

View file

@ -2,6 +2,12 @@
{{ if ne .Parent nil }} {{ if ne .Parent nil }}
{{ if ne .Parent.Parent nil }} {{ if ne .Parent.Parent nil }}
{{ if ne .Parent.Parent.Parent nil }} {{ if ne .Parent.Parent.Parent nil }}
{{ if ne .Parent.Parent.Parent.Parent nil }}
{{ if ne .Parent.Parent.Parent.Parent.Parent nil }}
<a href="{{ .Parent.Parent.Parent.Parent.Parent.Permalink }}">{{ .Parent.Parent.Parent.Parent.Parent.Title }}</a> &gt;
{{ end }}
<a href="{{ .Parent.Parent.Parent.Parent.Permalink }}">{{ .Parent.Parent.Parent.Parent.Title }}</a> &gt;
{{ end }}
<a href="{{ .Parent.Parent.Parent.Permalink }}">{{ .Parent.Parent.Parent.Title }}</a> &gt; <a href="{{ .Parent.Parent.Parent.Permalink }}">{{ .Parent.Parent.Parent.Title }}</a> &gt;
{{ end }} {{ end }}
<a href="{{ .Parent.Parent.Permalink }}">{{ .Parent.Parent.Title }}</a> &gt; <a href="{{ .Parent.Parent.Permalink }}">{{ .Parent.Parent.Title }}</a> &gt;