Skip to content

Commit ee55c70

Browse files
committed
getting rid of language suffix in post titles
1 parent ea2edde commit ee55c70

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

_layouts/post.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
layout: main
33
---
4-
<h3>{{ page.title }}</h3>
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>
58

69
{{ content }}

0 commit comments

Comments
 (0)