sort people by weight

This commit is contained in:
samaradel
2022-09-13 12:59:00 +02:00
parent a5f2162cf9
commit ceb30dde89
2 changed files with 9 additions and 6 deletions

View File

@@ -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" %}