diff options
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> |
