mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-21 18:11:37 +01:00
Revert "Remove trailing and leading slashes off the $url for Breadcrumb gen;"
This reverts commit 0f0e027def
.
This commit is contained in:
parent
54744ba694
commit
fe94d7f347
@ -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>
|
||||
|
@ -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 "/")}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user