Skip to content

Commit

Permalink
Remove site.url from first breadcrumb link (mmistakes#3051)
Browse files Browse the repository at this point in the history
* Remove site.url from first breadcrumb link

Fixes mmistakes#3050

* Use relative_rul filter instead of site.baseurl
  • Loading branch information
erikw committed Jul 23, 2021
1 parent fae7cca commit 1f158be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _includes/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 1f158be

Please sign in to comment.