Pages, taxonomies, menus and pagination
get_page- The full value of the page at
path(relative paths resolve againstpage), or none. deref- The full value (with relations) of a listed summary page.
get_terms- The term links of
pagefortaxonomy;[]when it is not a taxonomy. related- Pages related to
pageamongpages, best first, per therelatedconfig:indiceslimits the search to some indices,fragmentsadds heading ids to the fragments indices,keywordsadds keywords by index name ({"tags": ["rust"]}),page=nonesearches thefragmentsandkeywordsalone. When a fragments index withapplyFiltermatched, each result’sfragmentsholds only the matched headings. param- The page param
key(a dotted path), else the site param. paginator- The pager of the current (page, format) over its default list. Recorded: the first call wins.
paginate- The pager over
pages. A re-call with another list or size is an error naming both positions. store_set- Sets
keyin the page store (content-phase writes are buffered per transaction); in a content adapter withoutpage=, in the adapter’s store, which its runs for every language share. Prints nothing. store_get- Reads
keyfrom the page store (in a content adapter withoutpage=: the adapter’s store), or none. add_page- Adds the page
pagedescribes to the adapter’s directory:path(relative, required but forkind: home),kind(defaultpage),title,content({mediaType, value}, default Markdown),dates({date, lastmod, publishDate, expiryDate}),params,build,cascade,outputsand the other front matter fields (notlang,content.markup). A path added again replaces the earlier page. Prints nothing. add_resource- Adds the page resource
resourcedescribes:path(relative to the adapter’s directory, required),content({mediaType, value}: a string, or a resource, which keeps its own URL),name,title,params. A path added again replaces the earlier resource. Prints nothing. enable_all_languages- Runs the adapter for every language, not only its own (the runs share the adapter’s store). Prints nothing.
page_content- The rendered content of
page; memoised and cycle-checked. page_summary- The summary of
page. page_plain- The content of
pageas plain text. page_word_count- The word count of
page. page_fragments{headings, identifiers}ofpage.page_toc- The table of contents of
page. render_shortcodes- The source of
pagewith its shortcodes expanded (placeholders renumbered). is_menu_current- Whether
entryofmenupoints atpage. has_menu_current- Whether a child of
entryofmenupoints atpage. by_title- Pages by title (collation of the language).
by_link_title- Pages by link title.
by_date- Pages by date, oldest first.
by_publish_date- Pages by publish date.
by_lastmod- Pages by last modification.
by_weight- Pages by Go’s default page order (weight, date, link title, path).
group_by_date[{key, pages}]grouped by the date formatted withformat(strftime), newest first (order="asc": oldest first); no date is Go’s zero date (0001).group_by_param[{key, pages}]grouped by the page paramparam.by_count- Taxonomy terms by page count, then lower-cased name in Go’s string order.
alphabetical- Taxonomy terms by name (collation).
- get_page
- deref
- get_terms
- related
- param
- paginator
- paginate
- store_set
- store_get
- add_page
- add_resource
- enable_all_languages
- page_content
- page_summary
- page_plain
- page_word_count
- page_fragments
- page_toc
- render_shortcodes
- is_menu_current
- has_menu_current
- by_title
- by_link_title
- by_date
- by_publish_date
- by_lastmod
- by_weight
- group_by_date
- group_by_param
- by_count
- alphabetical