Module

cache.indexes.author_index

Author Index - Index pages by author.

Classes

AuthorIndex
Index pages by author. Supports both string and dict author formats: author: "Jane Smith" …
2

Index pages by author.

Supports both string and dict author formats:

author: "Jane Smith"

# Or with details:
author:
  name: "Jane Smith"
  email: "jane@example.com"
  bio: "Python enthusiast"

Provides O(1) lookup: site.indexes.author.get('Jane Smith') # All posts by Jane

Multi-author support (multi-valued index): authors: ["Jane Smith", "Bob Jones"] # Both authors get index entry

Inherits from QueryIndex

Methods 1

extract_keys
Extract author(s) from page metadata.
1 list[tuple[str, dic…
def extract_keys(self, page: Page) -> list[tuple[str, dict[str, Any]]]

Extract author(s) from page metadata.

Parameters 1
page Page
Returns

list[tuple[str, dict[str, Any]]]

Internal Methods 1
__init__
1 None
def __init__(self, cache_path: Path)
Parameters 1
cache_path Path