{#
Action Bar Component
Combines breadcrumb navigation (left) with page actions (right)
such as sharing with AI assistants.
Usage: {% include 'partials/action-bar.html' %}
Requires: page object in context
#}
{% if page %}
{# Main Action Bar #}
{# Left: Breadcrumbs #}
{# Right: Actions #}
{# LLM Share Button #}
{% set page_url = canonical_url(page.url) %}
{% set llm_txt_url = ensure_trailing_slash(page_url) + 'index.txt' %}
{% set share_prompt = "Please help me understand this documentation: " + llm_txt_url %}
{# Quick Actions #}
Open LLM text
{# AI Assistant Links #}
{# Expandable Metadata Panel - Below action bar #}
{% set has_metadata = page.metadata.get('author') or page.date or page.content or page.metadata.get('lastmod') %}
{% if has_metadata %}
{% if page.metadata.get('author') %}
{{ page.metadata.get('author') }}
{% endif %}
{% if page.content %}
{{ page.content | reading_time }} min read
{% endif %}
{% if page.content %}
{{ page.content | wordcount }} words
{% endif %}
{% if page.metadata.get('lastmod') or page.date %}
Updated {{ (page.metadata.get('lastmod') or page.date) | time_ago }}
{% endif %}