From 472f55327eb2c0e08245520487d1bf38968096e7 Mon Sep 17 00:00:00 2001 From: samaradel Date: Mon, 11 Dec 2023 14:14:36 +0200 Subject: [PATCH] add people intro --- templates/people/list.html | 78 ++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 46 deletions(-) diff --git a/templates/people/list.html b/templates/people/list.html index 77eee454b..9a6398467 100644 --- a/templates/people/list.html +++ b/templates/people/list.html @@ -1,24 +1,19 @@ {% extends "_default/base.html" %} {% block content %} - - +{%- set section = get_section(path="people/_index.md") %} +{% include "partials/intro.html" %}
{% include "partials/filter_bar.html" %} -
-

- {%- set section = get_section(path="people/_index.md") %} - - {% set path_array = current_path | split(pat="/") %} +

+ {% set path_array = current_path | split(pat="/") %} {% set taxonomy = path_array[1] %} {% set category = path_array[2] %} {{category | replace(from='-', to=' ' ) | title}} -

-
-
- {% for person in section.pages %} + +
+
+ {% for person in section.pages %} {% set page_path = person.path ~ 'index.md' | replace(from='-', to='_') | trim_start_matches(pat="/") %} {% set people = get_section(path="people/_index.md") %} {% set pages_str = people.pages | json_encode() | as_str %} @@ -31,25 +26,21 @@ {% endif %} {% endif %} {% endfor %} -
-
-

- {% if paginator.previous %} - {% include "partials/icons/svgPrevPageIcon.html" %}{% include - "partials/icons/svgPrevPageIcon.html" %} +


+

+ {% if paginator.previous %} + + {% include "partials/icons/svgPrevPageIcon.html" %}{% include + "partials/icons/svgPrevPageIcon.html" %} + -           - {% include "partials/icons/svgPrevPageIcon.html" %} + {% include "partials/icons/svgPrevPageIcon.html" %} + -           +                     {% else %} {% include "partials/icons/svgFirstPageIcon.html" %}{% include "partials/icons/svgFirstPageIcon.html" %} @@ -58,27 +49,22 @@                     {% endif %} {% if paginator.next %} - {% include "partials/icons/svgNextPageIcon.html" %} + {% include "partials/icons/svgNextPageIcon.html" %} + -           - {% include "partials/icons/svgNextPageIcon.html" %}{% include - "partials/icons/svgNextPageIcon.html" %} + {% include "partials/icons/svgNextPageIcon.html" %}{% include + "partials/icons/svgNextPageIcon.html" %} + - {% else %} {% include "partials/icons/svgLastPageIcon.html" %} + {% else %} {% include "partials/icons/svgLastPageIcon.html" %}           {% include "partials/icons/svgLastPageIcon.html" %}{% include "partials/icons/svgLastPageIcon.html" %} {% endif %} -

-
+

+
- {% endblock content %}