feat(page_list): add display_field argument #35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/page-list-display-field"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a display_field argument that controls which frontmatter field is
used as the link text in a page_list, instead of always using title.
Falls back to title if the specified field is absent on a given page.
Useful for author lists where a sort_name field (e.g. 'Blixen, Karen')
should be displayed while the title field remains 'Karen Blixen'.
Also exclude display_field from being treated as a filter, alongside
the existing limit exclusion, via a shared _RESERVED set.