mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-24 08:37:13 +00:00
fix(i18n): localize the title (#2610)
This commit is contained in:
@@ -57,9 +57,17 @@
|
||||
|
||||
<title>
|
||||
{%- unless page.layout == 'home' -%}
|
||||
{{ page.title | append: ' | ' }}
|
||||
{%- capture title -%}
|
||||
{%- if page.collection == 'tabs' -%}
|
||||
{%- assign tab_key = page.title | downcase -%}
|
||||
{{- site.data.locales[include.lang].tabs[tab_key] -}}
|
||||
{%- else -%}
|
||||
{{- page.title -}}
|
||||
{%- endif -%}
|
||||
{%- endcapture -%}
|
||||
{{- title | append: ' | ' -}}
|
||||
{%- endunless -%}
|
||||
{{ site.title }}
|
||||
{{- site.title -}}
|
||||
</title>
|
||||
|
||||
{% include_cached favicons.html %}
|
||||
|
||||
Reference in New Issue
Block a user