pub struct ShellSlots {
pub lang: String,
pub document_title: String,
pub site_title: String,
pub body_class: String,
pub head: String,
pub site_nav: String,
pub breadcrumbs: String,
pub content: String,
pub footer: String,
pub scripts: String,
}Expand description
The named values a shell template is filled with.
Text fields hold their unescaped text; escaping happens where the slot is filled, so a value is escaped exactly once no matter which shell renders it.
Fields§
§lang: String{{lang}} — the document language, for <html lang="…">.
document_title: String{{document_title}} — the <title> text: "Entry - Site", or just the
site’s name on the page that is the site.
site_title: String{{site_title}} — the site’s name on its own.
body_class: String{{body_class}} — the class list for <body>, to be written inside
class="…". Empty when the page has no site nav.
head: String{{{head}}} — stylesheet link, favicon link, SEO meta, feed links and
the page’s own styles:, as a newline-separated run of tags indented
four spaces. Does not include <title>, which is its own slot.
{{{site_nav}}} — the site navigation sidebar. Empty when the site has
no nav tree.
{{{breadcrumbs}}} — the breadcrumb trail for this page.
content: String{{{content}}} — the rendered body, with its links already rewritten.
{{{footer}}} — the built-in attribution footer.
scripts: String{{{scripts}}} — the built-in interactivity script and the page’s own
scripts:, as a newline-separated run of tags indented four spaces.
Trait Implementations§
Source§impl Clone for ShellSlots
impl Clone for ShellSlots
Source§fn clone(&self) -> ShellSlots
fn clone(&self) -> ShellSlots
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more