diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-07-27 03:06:07 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-07-27 03:06:07 +0300 |
commit | 4f62d41190ccb05f49c4c29d6ab3988851a75e12 (patch) | |
tree | 6190b39c489a98cd2b7d78d98f7fc7b5c41f7937 /layouts | |
parent | a426260529c38c7ca5d45e76de6785e8ab979c58 (diff) |
fix colors
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 }}
|