Skip to content

Commit

Permalink
✨ feat(archive): allow customising section for archive
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Sep 17, 2023
1 parent a617d6f commit b987439
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

<div class="archive">
<ul class="list-with-title">
{%- set section_path = section.extra.section_path | default(value="blog/") -%}
{%- if lang == config.default_language %}
{%- set section_item = get_section(path="blog/" ~ "_index.md") %}
{%- set section_item = get_section(path=section_path ~ "_index.md") %}
{%- else %}
{%- set section_item = get_section(path="blog/" ~ "_index." ~ lang ~ ".md") %}
{%- set section_item = get_section(path=section_path ~ "_index." ~ lang ~ ".md") %}
{%- endif %}

{% for year, posts in
Expand Down

0 comments on commit b987439

Please sign in to comment.