File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
layout: main
3
3
---
4
-
5
- {% assign language_suffix = "." | append : page.lang %}
6
- {% assign title_without_language_code = page.title | replace : language_suffix : '' %}
7
- < h3 > {{ title_without_language_code }}</ h3 >
4
+ {% assign lang_suf = "." | append : page.lang %}
5
+ < h3 > {{page.title | split : lang_suf | first}}</ h3 >
8
6
9
7
{{ content }}
Original file line number Diff line number Diff line change 5
5
permalink: /en/
6
6
---
7
7
{% for post in site.posts %}
8
- {% if post.lang == page.lang %}
9
- < h3 > < a href ="{{ post.url }} "> {{ post.title }} </ a > </ h3 >
8
+ {% if post.lang == page.lang %}
9
+ {% assign lang_suf = "." | append : post.lang %}
10
+ < h3 > < a href ="{{ post.url }} "> {{post.title | split : lang_suf | first}} </ a > </ h3 >
10
11
{{ post.excerpt }}
11
12
< a href ="{{ post.url }} " class ="center "> [read on…]</ a >
12
13
{% endif %}
Original file line number Diff line number Diff line change 5
5
---
6
6
{% for post in site.posts %}
7
7
{% if post.lang == page.lang %}
8
- < h3 > < a href ="{{ post.url }} "> {{ post.title }} </ a > </ h3 >
8
+ {{post.lang}}
9
+ {% assign lang_suf = "." | append : post.lang %}
10
+ < h3 > < a href ="{{ post.url }} "> {{post.title | split : lang_suf | first}} </ a > </ h3 >
9
11
{{ post.excerpt }}
10
12
< a href ="{{ post.url }} " class ="center "> [weiter…]</ a >
11
13
{% endif %}
You can’t perform that action at this time.
0 commit comments