{% extends "base.html" %} {% block seo %} {{ super()}} {%- if author is defined -%} {% include "json_ld_author.html" ignore missing%} {%- else -%} {% include "json_ld_index.html" ignore missing%} {%- endif -%} {% endblock %} {# List template - used for index page, tag pages, author pages, etc. #} {# This template receives 'content_list' with an array of posts/pages to display #} {% block main %} {# Page Title (shown for non-index pages) #} {% if title and current_page != "index.html" %}

{{ title }}

{% endif %} {# Author Profile with IndieWeb h-card (for author pages) #} {% if author is defined %}
{% if author.avatar %} {{ author.name }} {% endif %}

{{ author.name }}

Author of {{ total_content }} post{% if total_content > 1 %}s{% endif %}

{% if author.bio %}

{{ author.bio }}

{% endif %} {% if author.links %} {% endif %}
{% endif %} {# Content List with IndieWeb h-feed #} {% if content_list %}
{% if title %}

{{ title }}

{% endif %} {% for item in content_list %}
{% if item.date %}{% endif %} {# Item Banner (if available) #} {% if item.banner_image %}
{{ item.title }}
{% endif %}
{# Item Title #}

{{ item.title }}

{# Item Metadata (for posts with dates) #} {% if item.date %}
{# Authors with IndieWeb h-card #} {% if item.authors %}
by {% for author in item.authors %} {% set slug = "author-" ~ author | trim | slugify %} {% set link = slug ~ ".html"%} {{ author }}{% if not loop.last %}, {% endif %} {% endfor %}
{% endif %}
{% endif %}
{# Item Description/Excerpt with IndieWeb p-summary #} {% if item.description %}

{{ item.description }}

{% else %} {# Auto-generate excerpt from content #}

{{ item.html | striptags | truncate(length=200, end='...') }}

{% endif %} {# Item Footer with Tags and Read More #}
{% endfor %}
{% else %} {# Empty State #}

No content found.

{% endif %} {# Pagination #} {% if total_pages > 1 %} {% endif %} {% endblock %}