{% extends "base.html" %} {# Docs Home Template Optimized home page template for documentation sites. Features: - No action bar (cleaner for home page) - Hero section with title and description - Main content area - Quick links to key documentation sections - No blog posts (docs sites don't need recent posts) Usage: Set `type: doc` on home page to auto-select Or set `template: doc/home.html` in frontmatter #} {% block content %}
{# Hero Section #}

{{ page.title | default(site.config.title) }}

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

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

{% endif %}
{# Main Content #} {% if content and content.strip() %}
{{ content | safe }}
{% endif %} {# Quick Links to Key Sections #} {% set show_quick_links = page.metadata.get('show_quick_links', true) %} {% if show_quick_links %} {# Find main documentation sections #} {% set doc_sections = [] %} {% for section in site.sections %} {% if section.metadata.get('type') == 'doc' or section.metadata.get('content_type') == 'doc' %} {% set _ = doc_sections.append(section) %} {% endif %} {% endfor %} {# If no doc sections found, try common section names #} {% if not doc_sections %} {% set common_names = ['getting-started', 'guides', 'concepts', 'api', 'docs'] %} {% for name in common_names %} {% set candidates = site.sections | selectattr('name', 'equalto', name) | list %} {% if candidates %} {% set _ = doc_sections.append(candidates[0]) %} {% endif %} {% endfor %} {% endif %} {% if doc_sections %}

Documentation Sections

{% endif %} {% endif %} {# Custom Quick Links from metadata #} {% if page.metadata.get('quick_links') %} {% endif %}
{% endblock %}