From 9e052f0a552497be4265ab2ca3a977f6cc15b224 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Thu, 22 Aug 2024 21:08:47 -0700 Subject: Accessibility --- templates/page.html | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'templates/page.html') diff --git a/templates/page.html b/templates/page.html index 24c628a..cf8016b 100644 --- a/templates/page.html +++ b/templates/page.html @@ -60,17 +60,15 @@
- {{ tag.name }} ({{ parts_string }}) -
    + {{ tag.name }} ({{ parts_string }})
    {%- for inner in tag.pages | sort(attribute="date") %} {%- if inner.content == page.content %} -
  1. {{ inner.title }}
  2. + {{ inner.title }}
    {%- set_global current_section_index = loop.index0 %} {# Finds the current section, needed for pagination logic later #} {% else %} -
  3. {{ inner.title }}
  4. + {{ inner.title }}
    {%- endif %} {%- endfor %} -
{%- endif %} @@ -105,8 +103,7 @@ {%- if page.extra.series %} {%- set num_extra_pages = config.extra.series_items | default(value=9) %}
- {{ parts_string }} -
    + {{ parts_string }}
    {%- if tag.page_count > num_extra_pages and num_extra_pages > 0 %} {%- set sorted_array = tag.pages | sort(attribute="date") %} {%- set num_pages = tag.page_count %} @@ -121,7 +118,7 @@
    {%- for inner in sorted_array | slice(start=1, end=(current_section_index - 2)) %} -
  1. {{ inner.title }}
  2. + {{ inner.title }}
    {%- endfor %}
    {%- endif %} @@ -135,7 +132,7 @@ {# Shows two pages before current page #} {%- for inner in sorted_array | slice(start=num, end=current_section_index) %} -
  3. {{ inner.title }}
  4. + {{ inner.title }}
    {%- endfor %} {# Shows the current page #} @@ -151,8 +148,8 @@ {%- endif %} {%- for inner in sorted_array | slice(start=(current_section_index + 1), end=num ) %} -
  5. {{ inner.title }}
  6. - {%- endfor %} + {{ inner.title }}
    + {% endfor %} {%- if current_section_index < num_pages - 4 %}
    @@ -160,7 +157,7 @@
    {%- for inner in sorted_array | slice(start=(current_section_index + 3), end=(num_pages - 1)) %} -
  7. {{ inner.title }}
  8. + {{ inner.title }}
    {%- endfor %}
    {%- endif %} @@ -174,7 +171,6 @@ {{ macros::series_link(inner=inner, page=page, config=config) }} {%- endfor %} {%- endif %} -
{%- endif %} -- cgit v1.3.1