{{ post.title }}
{% if post.metadata.get('description') %}{{ post.metadata.get('description') }}
{% endif %} {% if post.tags %} {% endif %}{% extends "base.html" %} {# Author Single Page Template Displays an individual author's profile with bio, stats, and all their posts. Uses query indexes for O(1) author lookups. URL Pattern: /authors/lbliii/ Required page metadata: - author_name: "lbliii" (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) Can also pull from data/authors.yaml: {% set author_data = site.data.authors[page.metadata.author_name] %} Context variables: - page: Current author page - page.metadata.author_name: The author key to look up - site.indexes.author: Author index - site.data.authors: Author registry (if data/authors.yaml exists) #} {% from 'partials/navigation-components.html' import breadcrumbs %} {% from 'partials/content-components.html' import tag_list %} {% set author_key = page.metadata.author_name | default(page.title) %} {# Try to get author data from registry first, fall back to page metadata #} {% set author_data = site.data.authors[author_key] if site.data.authors and author_key in site.data.authors else {} %} {% set author_name = author_data.name | default(page.title) %} {% set author_bio = author_data.bio | default(page.metadata.get('bio', '')) %} {% set author_avatar = author_data.avatar | default(page.metadata.get('avatar')) %} {% set author_social = author_data.social | default(page.metadata.get('social', {})) %} {# Merge social links from data file format #} {% if author_data.github and not author_social.github %} {% set author_social = author_social | merge({'github': author_data.github}) %} {% endif %} {% if author_data.links %} {% for link in author_data.links %} {% set link_url = link.get('href') or link.get('url') or '' %} {% if 'github' in link_url %} {% set author_social = author_social | merge({'github': link_url | replace('https://github.com/', '')}) %} {% endif %} {% endfor %} {% endif %} {% set section_filter = page.metadata.get('section_filter') %} {% block content %} {{ breadcrumbs(page) }}
{% endblock %}