fix: correct the i18n for tab titles
This commit is contained in:
parent
f1d9e99bc0
commit
0c5b697fd3
5 changed files with 3 additions and 5 deletions
|
@ -20,7 +20,8 @@ layout: default
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endcapture %}
|
{% 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 %}
|
{% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
|
||||||
<h1 class="dynamic-title">
|
<h1 class="dynamic-title">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
title: About
|
# the default layout is 'page'
|
||||||
icon: fas fa-info-circle
|
icon: fas fa-info-circle
|
||||||
order: 4
|
order: 4
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
layout: archives
|
layout: archives
|
||||||
title: Archives
|
|
||||||
icon: fas fa-archive
|
icon: fas fa-archive
|
||||||
order: 3
|
order: 3
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
layout: categories
|
layout: categories
|
||||||
title: Categories
|
|
||||||
icon: fas fa-stream
|
icon: fas fa-stream
|
||||||
order: 1
|
order: 1
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
layout: tags
|
layout: tags
|
||||||
title: Tags
|
|
||||||
icon: fas fa-tag
|
icon: fas fa-tag
|
||||||
order: 2
|
order: 2
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in a new issue