Skip to content

Commit 430f6d8

Browse files
committed
Fixing Breadcrumb links
1 parent 56eb963 commit 430f6d8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

_includes/breadcrumbs.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@
44
<ol class="breadcrumb-list" itemscope itemtype="https://schema.org/BreadcrumbList">
55
<!-- Home -->
66
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
7-
<a href="{{ site.url }}" itemprop="item"> Home
7+
<a href="{{ '/' | relative_url }}" itemprop="item">
8+
<span itemprop="name">Home</span>
89
</a>
910
<meta itemprop="position" content="1" />
1011
</li>
1112

1213
<!-- Previous page (if exists) -->
1314
{% if page.parent %}
1415
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
15-
<a href="{{ site.url }}/{{ page.parent | slugify }}" itemprop="item">
16-
{{ page.parent }}
16+
<a href="{{ page.parent | slugify | prepend: '/' | relative_url }}" itemprop="item">
17+
<span itemprop="name">{{ page.parent }}</span>
1718
</a>
1819
<meta itemprop="position" content="2" />
1920
</li>
@@ -22,7 +23,7 @@
2223
<!-- Current page -->
2324
<li class="breadcrumb-item current" itemprop="itemListElement" itemscope
2425
itemtype="https://schema.org/ListItem">
25-
{{ page.title }}
26+
<span itemprop="name">{{ page.title }}</span>
2627
<meta itemprop="position" content="{% if page.parent %}3{% else %}2{% endif %}" />
2728
</li>
2829
</ol>

0 commit comments

Comments
 (0)