diff options
| author | Jieiku | 2023-05-22 22:39:16 -0700 |
|---|---|---|
| committer | Jieiku | 2023-05-22 22:39:16 -0700 |
| commit | 2d0788c3981328f1fbd9de4274d2925bf9586e03 (patch) | |
| tree | cee4b3c0a624ce79fcc14b2c57789a95578e4ea5 /templates/posts.html | |
| parent | 6dcec618d0ff0a2270f787f62267a0622275c69d (diff) | |
| download | abridge-2d0788c3981328f1fbd9de4274d2925bf9586e03.tar.gz abridge-2d0788c3981328f1fbd9de4274d2925bf9586e03.tar.bz2 abridge-2d0788c3981328f1fbd9de4274d2925bf9586e03.zip | |
Add multi-lingual Support
Diffstat (limited to 'templates/posts.html')
| -rw-r--r-- | templates/posts.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/posts.html b/templates/posts.html index d4fc9e4..a353d15 100644 --- a/templates/posts.html +++ b/templates/posts.html @@ -18,7 +18,11 @@ {%- endblock seo %} {%- block content %} -{%- set section_item = get_section(path="_index.md") %} + {%- if lang == config.default_language %} + {%- set section_item = get_section(path="_index.md") %} + {%- else %} + {%- set section_item = get_section(path="_index." ~ lang ~ ".md") %} + {%- endif %} <div> {%- for year, posts in section_item.pages | group_by(attribute="year") %} <h2>{{ year }}</h2> |
