Skip to content

Commit 5379dd7

Browse files
authored
Fix and unify homepage links (#186)
1 parent 07a4538 commit 5379dd7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

_includes/breadcrumbs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div id="breadcrumbs" class="pb-3">
22
{% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
3-
<a href="{{ site.baseurl }}">{% t generic.home %}</a>
3+
<a href="/{% if site.lang != 'en' %}{{ site.lang }}{% endif %}">{% t generic.home %}</a>
44
{% for crumb in crumbs offset: 1 %}
55
{% if forloop.last %}
66
/ {% t page.title %}

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="container">
1111
<div class="row pt-2 mb-4 mb-lg-3 justify-content-between">
1212
<div class="col-12 col-lg-4 col-md-12 mb-3">
13-
<div class="small mb-4 mb-lg-3"><a href="{% if site.lang == "en" %}/{% else %}{{ site.baseurl }}{% endif %}"><img
13+
<div class="small mb-4 mb-lg-3"><a href="/{% if site.lang != 'en' %}{{ site.lang }}{% endif %}"><img
1414
src="{{ site.baseurl_root }}/assets/logos/logo.png" width="260px" /></a></div>
1515
<p class="size-14 color-gray-900 mb-3">{% t footer.description %}</p>
1616
</div>

_includes/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="container py-4">
33
<div class="navbar navbar-expand-xl justify-content-between">
44
<div>
5-
<a href="{% if site.lang == "en" %}/{% else %}{{ site.baseurl }}{% endif %}">
5+
<a href="/{% if site.lang != 'en' %}{{ site.lang }}{% endif %}">
66
<img class="smallermobile" src="/assets/logos/logo.png" id="mainlogo" />
77
</a>
88
</div>

0 commit comments

Comments
 (0)