Skip to content

Commit

Permalink
feat(series): adapt reversed pagination check
Browse files Browse the repository at this point in the history
Changes have been requested in Zola PR: getzola/zola#2653.
This requieres minor adaptation on properties used to reversed pagination.
  • Loading branch information
ZzMzaw committed Oct 11, 2024
1 parent 5016dfd commit cb41bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ <h1 class="article-title">
{%- if "series" in loaded_section.extra and loaded_section.extra.series -%}
{%- set_global series_section = loaded_section -%}
{%- set_global series_ordered_pages = loaded_section.pages -%}
{%- if loaded_section.paginated and loaded_section.paginate_reversed -%}
{%- if loaded_section.paginated | default(value=0) > 0 and loaded_section.paginate_reversed -%}
{%- set_global series_ordered_pages = loaded_section.pages | reverse -%}
{%- endif -%}
{%- break -%}
Expand Down

0 comments on commit cb41bff

Please sign in to comment.