{% extends "base.html" %} {# Generic Section Index Template Used for non-chronological section landing pages. Falls back when no specialized template exists. Context variables: - section: Section object (for auto-generated pages) - page: Page object (for explicit _index.md files) - posts: Child pages (_posts) - subsections: Child sections (_subsections) Frontmatter options: - show_children: true/false (default: true) Controls whether child pages and subsections are displayed as tiles #} {% from 'partials/navigation-components.html' import breadcrumbs %} {% from 'partials/content-components.html' import child_page_tiles %} {% block content %} {{ breadcrumbs(page if page is defined else section) }}

{{ page.title if page else section.title if section else site.config.title }}

{% if page and page.metadata.get('description', '') %}

{{ page.metadata.get('description', '') }}

{% elif section and section.metadata.get('description') %}

{{ section.metadata.get('description', '') }}

{% endif %}
{# User-provided content (from _index.md) #} {% if content %}
{{ content | safe }}
{% endif %} {# Child content display - can be disabled via frontmatter: show_children: false #} {% set show_children = page.metadata.get('show_children', true) if page else true %} {% if show_children %} {{ child_page_tiles(posts=posts, subsections=subsections) }} {% endif %} {# Empty state if no children to display #} {% if not (posts or subsections) %} {# Empty state with helpful guidance #}

This section doesn't have any content yet.

{% if section %}

To add content:

  • Create a page: content/{{ section.path.relative_to(site.content_dir) }}/my-page.md
  • Add a custom index: content/{{ section.path.relative_to(site.content_dir) }}/_index.md
  • Create a subsection: content/{{ section.path.relative_to(site.content_dir) }}/subsection/
{% endif %}
{% endif %}
{% endblock %}