diff options
author | it-gro <grossnik@tuvok> | 2018-07-09 12:44:31 +0300 |
---|---|---|
committer | it-gro <grossnik@tuvok> | 2018-07-09 12:44:31 +0300 |
commit | 32d9263cb37eabf89a11f1e345ac8312150a2a14 (patch) | |
tree | bce6dbdb2e0f67c46cbd9b630d986b8a53fb6071 /layouts | |
parent | 108419778ba17bb8060e606203d4000c9b3b9229 (diff) | |
parent | 5dbb464d7fc920d628456b2cbeeb31337b154d74 (diff) |
wip
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/page.nav.breadcrump.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/partials/page.nav.breadcrump.html b/layouts/partials/page.nav.breadcrump.html index da4a97f..c2b75cc 100644 --- a/layouts/partials/page.nav.breadcrump.html +++ b/layouts/partials/page.nav.breadcrump.html @@ -20,8 +20,11 @@ {{- end }} {{- if not .p1.IsHome }} <div class="w3-bar-item w3-button breadcrump-button w3-small"> - {{- if .mySite.Params.options.navbreadcrumptitle -}} - <a href="{{ .p1.Permalink }}">{{.p1.Title | safeHTML }}/</a> + {{- if .mySite.Params.options.navbreadcrumptitle -}} + <a href="{{ .p1.Permalink }}">{{.p1.Title | markdownify | emojify | safeHTML }}/</a> + {{- else }} + <a href="{{ .p1.Permalink }}">{{replaceRE ".*/" "" ( (urls.Parse .p1.Permalink).Path | relURL | strings.TrimSuffix "/") | humanize }}/</a> + {{- end }} {{- else }} <a href="{{ .p1.Permalink }}">{{replaceRE ".*/" "" ( (urls.Parse .p1.Permalink).Path | relURL | strings.TrimSuffix "/") | humanize }}/</a> {{- end }} |