Skip to content

Commit

Permalink
fix: correct the i18n for tab titles
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Sep 20, 2022
1 parent f1d9e99 commit 0c5b697
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
{% endif %}
{% endcapture %}

{% if page.layout == 'page' or page.collection == 'tabs'%}
{% if page.collection == 'tabs' %}
{% assign tab_key = page.title | downcase %}
{% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
<h1 class="dynamic-title">
{{ title }}
Expand Down
2 changes: 1 addition & 1 deletion _tabs/about.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: About
# the default layout is 'page'
icon: fas fa-info-circle
order: 4
---
Expand Down
1 change: 0 additions & 1 deletion _tabs/archives.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: archives
title: Archives
icon: fas fa-archive
order: 3
---
Expand Down
1 change: 0 additions & 1 deletion _tabs/categories.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: categories
title: Categories
icon: fas fa-stream
order: 1
---
1 change: 0 additions & 1 deletion _tabs/tags.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: tags
title: Tags
icon: fas fa-tag
order: 2
---

0 comments on commit 0c5b697

Please sign in to comment.