{{ post.title }}
{% if post.metadata.description %}{{ post.metadata.description }}
{% end %} {% if post.tags %} {% end %}{% extends "base.html" %} {# Author Archive Template Displays all posts/pages by a specific author with stats and bio. Uses query indexes for O(1) author lookups. URL Pattern: /authors/jane-smith/ Required page metadata: - author_name: "Jane Smith" (the author key to look up) Optional metadata: - avatar: "/images/jane.jpg" - bio: "Author bio text" - social: {twitter: "@jane", github: "janesmith"} - section_filter: "blog" (only show posts from specific section) Usage: Create content/authors/jane-smith.md: --- title: "Jane Smith" author_name: "Jane Smith" avatar: "/images/jane.jpg" bio: "Senior developer and technical writer" template: author.html social: twitter: "@janesmith" github: "janesmith" email: "jane@example.com" --- Context variables: - page: Current author page - params.author_name: The author to query - site.indexes.author: Author index #} {% from 'partials/navigation-components.html' import breadcrumbs %} {% from 'partials/components/tags.html' import tag_list %} {% set author_key = params.author_name | default(page.title) %} {% set authors_registry = site?.data?.authors ?? {} %} {% set author_from_registry = authors_registry.get(author_key, {}) if author_key else {} %} {% set author_name = author_from_registry.name | default(author_key) %} {% set author_avatar = author_from_registry.avatar | default(params.avatar) %} {% set author_bio = author_from_registry.bio | default(params.bio) %} {% set author_social = author_from_registry.social | default(params.social) %} {% set section_filter = params.section_filter %} {% block content %} {{ breadcrumbs(page) }}
{% end %}