veilid-dot-com/themes/veilid/layouts/_default/list.json.twig

14 lines
433 B
Twig
Raw Normal View History

2023-08-15 15:25:21 -04:00
{# all "showable pages by default #}
{% set pages = site.pages.showable %}
{# in case of a list page, take its sub pages #}
{% if page.pages is defined %}
{%- set pages = page.pages -%}
{% endif %}
{# in case of a paginated list page, take the paginator list pages #}
{% if page.paginator.pages is defined %}
{%- set pages = page.paginator.pages -%}
{% endif %}
{%- set items = pages -%}
{% extends '_default/page.json.twig' %}