Template API¶
Globals¶
This plugin inserts a template global function index_pages which can be used to access the index pages for an index.
- lektor_index_pages.index_pages(index_name, alt=PRIMARY_ALT)¶
Index_pages returns an interable of
IndexSource
instances for the top-level index pages of the index named index_name.This function is provided mostly as syntactic sugar —
index_pages(index-name, alt)
is roughly equivalent tosite.get(parent-path@index-pages/index-name [,alt]).subindexes
(whereparent-path
is the value ofparent_path
configured for the index.)