diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/body-article-content.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/layouts/partials/body-article-content.html b/layouts/partials/body-article-content.html index 1de2b7c..d9ae492 100644 --- a/layouts/partials/body-article-content.html +++ b/layouts/partials/body-article-content.html @@ -58,7 +58,15 @@ {{ define "breadcrumbnav" }}
{{ if .p1.Parent }}
- {{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }}
+ {{ if .p1.Parent.IsHome}}
+ <li class="breadcrumb-item ">
+ <a class="text-link" href="{{.p1.Site.BaseURL}}">
+ Home
+ </a>
+ </li>
+ {{else}}
+ {{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }}
+ {{end}}
{{ else if not .p1.IsHome }}
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
{{ end }}
|