summaryrefslogtreecommitdiff
path: root/layouts/partials/templates/schema_json.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/templates/schema_json.html')
-rw-r--r--layouts/partials/templates/schema_json.html1
1 files changed, 1 insertions, 0 deletions
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 "/")}}