{% extends "base.html" %} {% block seo %} {% if content.description %} {% else %} {%- endif %} {% if content.card_image %} {% elif site.card_image %} {% endif %} {% if site.url %} {% endif %} {% if content.date %} {% endif %} {% if site.url and content.authors %} {% endif %} {% include "json_ld_content.html" ignore missing%} {% endblock %} {% block head %} {{ super() }} {%if content.extra.math %} {% endif %} {% endblock %} {% block main %} {# Content Banner Image (optional) #} {# Add 'banner_image' to your content front matter to display #} {% if content.banner_image %}
{{content.title}}
{% endif %} {# Main Article Content with IndieWeb h-entry #}
{% if content.date %} {% endif %} {# Draft Warning #} {% if content.stream == "draft" %}
⚠️ Draft Post: This post is a draft and may not be complete yet.
{% endif %} {# Content Title #}

{{ content.title }}

{# Content Metadata (for posts with dates) #} {% if content.date %} {# Calculate reading time #} {% set words = content.html | striptags | split(pat=' ') | length %} {% set reading_time = (words / 200) | round(method='ceil') %} {% endif %}
{# Series information (if content is part of a series) #} {% if content.series %}

Published as part of '{{ series_display_name(series=content.series) }}' series.

{% endif %} {# Table of Contents (if enabled and available) #} {% if content.toc %}
📋 Table of Contents {{ content.toc }}
{% endif %} {# Main Content Body with IndieWeb e-content #}
{{ content.html }}
{# Content Footer with Tags and Stream info #} {% if content.date %} {% endif %}
{# Related Content Section (if enabled and not part of a series) #} {% if site.enable_related_content and not content.series %} {# Back-links - other content that links to this content #} {% if content.back_links %} {% endif %} {# Related content by tags #} {% if content.tags %} {% set tag = content.tags[0] %} {% set tag_slug = tag | slugify %} {% set related_content = site_data.tag.map[tag_slug] %} {% if related_content | length > 1 %} {% endif %} {% endif %} {% endif %} {# Previous/Next Navigation (for stream-based content) #} {% if site.show_next_prev_links and (content.previous or content.next) %} {% endif %} {# Comments Section #} {# Create content/_comments.md to add comment system integration #} {% if comments is defined %}
{{ comments }}
{% elif site.extra.comments.source is defined and content.date %} {%include "comments.html" ignore missing %} {% endif %} {% if content.source_path is string and (site.publish_md or site.source_repository) %}
{% set source_url = source_link(content=content) %} {% if source_url %} 📄 View source {% endif %}
{% endif %} {% endblock %} {% block scripts %} {{ super() }} {% if "code class" in content.html %} {% endif %} {%if content.extra.mermaid %} {% endif %} {% endblock %}