Skip to content

Commit 0c5b697

Browse files
committed
fix: correct the i18n for tab titles
1 parent f1d9e99 commit 0c5b697

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

_layouts/page.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
{% endif %}
2121
{% endcapture %}
2222

23-
{% if page.layout == 'page' or page.collection == 'tabs'%}
23+
{% if page.collection == 'tabs' %}
24+
{% assign tab_key = page.title | downcase %}
2425
{% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
2526
<h1 class="dynamic-title">
2627
{{ title }}

_tabs/about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: About
2+
# the default layout is 'page'
33
icon: fas fa-info-circle
44
order: 4
55
---

_tabs/archives.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
layout: archives
3-
title: Archives
43
icon: fas fa-archive
54
order: 3
65
---

_tabs/categories.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
layout: categories
3-
title: Categories
43
icon: fas fa-stream
54
order: 1
65
---

_tabs/tags.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
layout: tags
3-
title: Tags
43
icon: fas fa-tag
54
order: 2
65
---

0 commit comments

Comments
 (0)