Classes
AuthorIndex
Index pages by author.
Supports both string and dict author formats:
author: "Jane Smith"
…
AuthorIndex
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
QueryIndexMethods 1
extract_keys
Extract author(s) from page metadata.
extract_keys
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__
__init__
def __init__(self, cache_path: Path)
Parameters 1
cache_path |
Path |