File tree Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change
1
+ {% assign baseurl = page.permalink | remove_first: "/" | remove_first: page.lang %}
2
+
3
+ {% for lang in site.languages %}
4
+ {% assign localization = "/" | append: lang | append: baseurl %}
5
+ {% assign locale = site.posts | where:"permalink", localization %}
6
+ {% assign localizations = localizations | concat: locale %}
7
+ {% endfor %}
Original file line number Diff line number Diff line change 3
3
---
4
4
< link rel ="stylesheet " href ="/assets/css/main.css ">
5
5
6
- {% assign baseurl = page.permalink | remove_first: "/" | remove_first: page.lang %}
7
-
8
- {% for lang in site.languages %}
9
- {% assign localization = "/" | append: lang | append:baseurl %}
10
- {% assign locale = site.posts | where:"permalink", localization %}
11
- {% assign localizations = localizations | concat: locale %}
12
- {% endfor %}
6
+ {% include functions/localization-finder.md %}
13
7
14
8
< article class ="newsletter ">
15
9
< header class ="post-header ">
Original file line number Diff line number Diff line change 3
3
---
4
4
< link rel ="stylesheet " href ="/assets/css/main.css ">
5
5
6
- {% assign baseurl = page.permalink | remove_first: "/" | remove_first: page.lang %}
7
-
8
- {% for lang in site.languages %}
9
- {% assign localization = "/" | append: lang | append:baseurl %}
10
- {% assign locale = site.posts | where:"permalink", localization %}
11
- {% assign localizations = localizations | concat: locale %}
12
- {% endfor %}
6
+ {% include functions/localization-finder.md %}
13
7
14
8
< article class ="post ">
15
9
You can’t perform that action at this time.
0 commit comments