1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-19 06:06:54 +00:00

feat(i18n): allow page.lang to override site.lang (#1586)

This commit is contained in:
Neil Boyd
2024-03-04 20:09:39 +01:00
committed by GitHub
parent 2a7b56bb36
commit 547b95cc7a
3 changed files with 6 additions and 4 deletions

View File

@@ -33,7 +33,7 @@
or page.layout == 'category'
or page.layout == 'tag'
%}
{% assign locale = site.lang | split: '-' | first %}
{% assign locale = include.lang | split: '-' | first %}
{% assign urls = urls
| append: ','