diff options
| -rw-r--r-- | layouts/partials/breadcrumbs.html | 1 | ||||
| -rw-r--r-- | layouts/partials/templates/schema_json.html | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index 0ffbc09..bf1f4b2 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -1,6 +1,7 @@ {{- if (.Param "ShowBreadCrumbs")}} <div class="breadcrumbs"> {{- $url := replace .Parent.Permalink ( printf "%s" .Site.BaseURL) "" }} + {{- $url = (trim $url "/" ) }} {{- $lang_url := strings.TrimPrefix ( printf "%s/" .Lang) $url }} <a href="{{ "" | absLangURL }}">{{ i18n "home" | default "Home"}}</a> diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html index 6e0a289..df11065 100644 --- a/layouts/partials/templates/schema_json.html +++ b/layouts/partials/templates/schema_json.html @@ -19,6 +19,7 @@ {{- else if (or .IsPage .IsSection) }} {{/* BreadcrumbList */}} {{- $url := replace .Parent.Permalink ( printf "%s" .Site.BaseURL) "" }} +{{- $url = (trim $url "/" ) }} {{- $lang_url := strings.TrimPrefix ( printf "%s/" .Lang) $url }} {{- $bc_list := (split $lang_url "/")}} |
