✨ feat(archive): allow customising section for archive
This commit is contained in:
parent
a617d6fe72
commit
b9874393b4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user