Revert "Remove trailing and leading slashes off the $url for Breadcrumb gen;"

This reverts commit 0f0e027def.
This commit is contained in:
Aditya Telange 2021-03-28 20:14:02 +05:30
parent 54744ba694
commit fe94d7f347
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
2 changed files with 0 additions and 2 deletions

View File

@ -1,7 +1,6 @@
{{- 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>

View File

@ -19,7 +19,6 @@
{{- 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 "/")}}