Skip to main content

Module page

Module page 

Source
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_site_nav
Render the full site navigation sidebar.
title_to_anchor
Convert a title to an anchor ID.