{# Page Hero - Editorial Variant Clean magazine-style layout without container styling: - Breadcrumbs as eyebrow (trimmed, no current page) - LLM share button aligned right - Large H1 title tight below breadcrumbs - Description - Inline metadata (read time, word count, updated) No border, background, or blob animations - just clean typography. Usage: Included via page-hero.html dispatcher Set hero_style: editorial in frontmatter or theme config #} {% from 'partials/navigation-components.html' import breadcrumbs with context %} {# Macro: Get page URL with fallback chain for robustness #} {% macro get_page_url(page) -%} {{ page._path if page._path is defined else (page.href if page.href is defined else '/') }} {%- endmacro %} {% if page %}
{# Top row: Breadcrumbs (left) + Actions (right) #}
{# Breadcrumbs as eyebrow - trimmed (excludes current page) #} {# Actions: LLM Share Button #}
{% set page_url = canonical_url(get_page_url(page)) %} {% set llm_txt_url = ensure_trailing_slash(page_url) ~ 'index.txt' %} {% set share_prompt = "Please help me understand this documentation: " + llm_txt_url %}
{# Title - tight below breadcrumbs #}

{{ page.title }}

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

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

{% endif %} {# Inline Metadata #} {% set has_metadata = page.content or page.date or page.metadata.get('lastmod') %} {% if has_metadata %}
{% if page.content and 'content.reading_time' in site.theme_config.features %} {{ icon("clock", size=16) }} {{ page.content | reading_time }} min read {% endif %} {% if page.content %} {{ icon("file-text", size=16) }} {{ page.content | wordcount }} words {% endif %} {% if page.metadata.get('lastmod') or page.date %} {{ icon("arrow-clockwise", size=16) }} {{ (page.metadata.get('lastmod') or page.date) | time_ago }} {% endif %}
{% endif %}
{% endif %}