{# Document Metadata Component Displays publication date, word count, and reading time in a clean, minimal format. Variables: - page: Current page object (required) - page.date: Publication/update date (optional) - page.content: Page content (for reading time and word count) Template Functions Used: - locale_date(date, 'long', lang): Formats date according to locale - reading_time: Calculates reading time from content - word_count: Counts words in content (strips HTML) - current_lang(): Gets current language Features: - Locale-aware date formatting - Word count display - Reading time estimation - SVG icons - Minimal, clean design Usage: {% include 'partials/docs-meta.html' %} #} {% if page.date or page.content %}
{% if page.date %} {% endif %} {% if page.content %} {{ icon("file-text", size=14) }} {{ page.content | word_count | commas }} words {{ icon("clock", size=14) }} {{ page.content | reading_time }} min read {% endif %}
{% endif %}