sort people by weight
This commit is contained in:
@@ -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
|
||||
---
|
||||
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
<h1
|
||||
class="tracking-tight text-5xl text-left text-2xl sm:text-3xl md:text-4xl lg:text-5xl fw-500 leading-snug font-normal mb-10"
|
||||
>
|
||||
{%- 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 @@
|
||||
</h1>
|
||||
<div>
|
||||
<div class="mt-12 grid gap-5 max-w-lg mx-auto lg:grid-cols-2 xl:grid-cols-4 lg:max-w-none">
|
||||
{% 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" %}
|
||||
|
||||
Reference in New Issue
Block a user