Skip to content

Commit 421f7e7

Browse files
Issue fixes
1 parent de58950 commit 421f7e7

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

_includes/nav.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@
3737
{% if page.layout != 'index' %}
3838
<div class="float-sm-left pl-3 breadcrumb">
3939
<p class="my-0 py-3 py-sm-4 text-gray">
40-
{% if page.lang != 'en' %}
41-
<a href="/{{ page.lang }}/" class="text-gray">{{ site.title }}</a>
40+
{% assign lang_url = '/' | append: page.lang | append: '/' %}
41+
{% assign lang_index = site.pages | where: "url", lang_url %}
42+
{% if page.lang != 'en' and lang_index.size > 0 %}
43+
<a href="{{ lang_url }}" class="text-gray">{{ site.title }}</a>
44+
{% elsif page.lang != 'en' %}
45+
<a href="{{ '/' | relative_url }}" class="text-gray">{{ site.title }}</a>
4246
{% else %}
4347
<a href="/" class="text-gray">{{ site.title }}</a>
4448
{% endif %}

_layouts/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ <h1 class="h00-mktg">{{ header }}</h1>
3333
<a href="{{ article.url | relative_url }}" class="guide-cover {{ article.class }} Box height-full d-block">
3434

3535
<div class="lh-none guide-cover-img text-center pt-4">
36-
<img src="{{ site.baseurl }}/assets/images/illos/{{ article.class }}.svg" class=""
36+
{% assign illo = article.class | default: 'default' %}
37+
<img src="{{ site.baseurl }}/assets/images/illos/{{ illo }}.svg" class=""
3738
alt="{{ article.title }} illustration">
3839
</div>
3940

assets/images/illos/default.svg

Lines changed: 7 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)