{% extends "base.html" %} {# Blog Post Single Page Template Used for individual blog post pages. Optimized for reading with author information, sharing options, and related posts. Usage: Set `type: blog` in frontmatter or use cascade from section Context variables: - page: Blog post page object - content: Rendered post content - toc: Table of contents #} {% from 'partials/navigation-components.html' import breadcrumbs, page_navigation %} {% from 'partials/content-components.html' import tag_list %} {% block content %} {# Action Bar: Breadcrumbs + Share #} {% include 'partials/action-bar.html' %}
{# Featured Image #} {% if page.metadata.get('image') or page.metadata.get('cover') %}
{{ page.title }}
{% endif %}

{{ page.title }}

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

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

{% endif %} {# Post Metadata #} {# Tags #} {% if page.tags %} {% endif %}
{# Main Post Content #}
{{ content | safe }}
{# Post Footer #}
{# Updated Date #} {% if page.metadata.get('updated') and page.metadata.get('updated') != page.date %}

Last updated: {{ page.metadata.get('updated') | dateformat('%B %d, %Y') }}

{% endif %} {# Author Bio #} {% if page.metadata.get('author') and page.metadata.get('author_bio') %}
{% if page.metadata.get('author_avatar') %} {{ page.metadata.get('author') }} {% endif %}

About {{ page.metadata.get('author') }}

{% if page.metadata.get('author_title') %}

{{ page.metadata.get('author_title') }}

{% endif %}

{{ page.metadata.get('author_bio') }}

{% if page.metadata.get('author_links') %} {% endif %}
{% endif %} {# Social Sharing #}
{# Right Sidebar: TOC #} {% if toc %} {% endif %}
{# Page Navigation (Prev/Next Posts) #} {{ page_navigation(page) }} {# Related Posts #} {% set related = page.related_posts[:3] %} {% if related %} {% endif %} {# Comments Section (Integration Point) #} {% if page.metadata.get('comments') != false %}

Comments

{# Integration point for comments systems (Disqus, utterances, etc) #}

Comments are loaded dynamically. Configure your comments system in the theme.

{% endif %} {% endblock %}