feat(archive): allow customising section for archive

main
welpo 1 year ago
parent a617d6fe72
commit b9874393b4
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -9,10 +9,11 @@
<div class="archive"> <div class="archive">
<ul class="list-with-title"> <ul class="list-with-title">
{%- set section_path = section.extra.section_path | default(value="blog/") -%}
{%- if lang == config.default_language %} {%- 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 %} {%- else %}
{%- set section_item = get_section(path="blog/" ~ "_index." ~ lang ~ ".md") %} {%- set section_item = get_section(path=section_path ~ "_index." ~ lang ~ ".md") %}
{%- endif %} {%- endif %}
{% for year, posts in {% for year, posts in

Loading…
Cancel
Save