diff --git a/content/people/_index.md b/content/people/_index.md index 341591fc9..02113b80e 100644 --- a/content/people/_index.md +++ b/content/people/_index.md @@ -1,7 +1,8 @@ --- title: "People" -template: "people_page.html" +paginate_by: 4 +sort_by: "weight" +template: "layouts/people.html" +page_template: "partials/personCard.html" insert_anchor_links: "left" -paginate_by: 24 ---- - +--- \ No newline at end of file diff --git a/templates/people/list.html b/templates/people/list.html index 0b2e3fa3f..cefddf26e 100644 --- a/templates/people/list.html +++ b/templates/people/list.html @@ -9,6 +9,8 @@

+ {%- set section = get_section(path="people/_index.md") %} + {% set path_array = current_path | split(pat="/") %} {% set taxonomy = path_array[1] %} {% set category = path_array[2] %} @@ -16,11 +18,11 @@

- {% for person in terms %} + {% 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 %} - {% if pages_str is containing(person.name) %} + {% if pages_str is containing(person.title) %} {% set page = get_page(path=page_path) %} {% if page.extra.private >= 0 %} {% include "partials/person_card.html" %}