Expand description
Page-shell helpers: navigation, breadcrumbs, SEO meta, feed/sitemap/robots generation, and small HTML/XML escaping utilities.
These are pure functions over the value types in crate::types. The page
assembly (full <html> document, theme/CSS/favicon) still lives in the
publish plugin and will move here in a later slice.
Functions§
- generate_
atom_ feed - Generate an Atom 1.0 feed.
- generate_
feed_ link_ tags - Generate
<link>tags for Atom and RSS feeds. - generate_
robots_ txt - Generate robots.txt content.
- generate_
rss_ feed - Generate an RSS 2.0 feed.
- generate_
seo_ meta - Generate SEO meta tags for a page.
- generate_
sitemap - Generate a sitemap.xml from published pages.
- html_
escape - Escape HTML special characters.
- render_
breadcrumb - Render breadcrumb navigation (parent link above the title).
- render_
full_ breadcrumbs - Render full breadcrumb trail from root to current page.
- render_
pager - The pager: links to the page before and after
currentin the nav’s reading order, or nothing for a page that has neither. - render_
site_ nav - Render the site navigation: the mobile bar, then the sidebar.
- title_
to_ anchor - Convert a title to an anchor ID.