Remove site.url from first breadcrumb link (#3051)
* Remove site.url from first breadcrumb link Fixes #3050 * Use relative_rul filter instead of site.baseurl
This commit is contained in:
parent
3c075fe76b
commit
0491cd362b
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@
|
|||
{% for crumb in crumbs offset: 1 %}
|
||||
{% if forloop.first %}
|
||||
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
<a href="{{ site.url }}{{ site.baseurl }}/" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label | default: "Home" }}</span></a>
|
||||
<a href="{{ '/' | relative_url }}" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label | default: "Home" }}</span></a>
|
||||
|
||||
<meta itemprop="position" content="{{ i }}" />
|
||||
</li>
|
||||
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
||||
|
|
Loading…
Reference in a new issue