pub struct BasePage<'a, G>{
pub title: &'a str,
pub description: Option<&'a str>,
pub date: Option<&'a DateTime>,
pub updated: &'a DateTime,
pub href: &'a str,
pub meta: &'a G::PageMeta,
pub content: Content<'a>,
}Expand description
Represents the a page to be rendered, sans any links/references to other pages.
Fields§
§title: &'a strThe page’s title.
description: Option<&'a str>An optional description of the page.
date: Option<&'a DateTime>The date the page was created (specified in the metadata).
updated: &'a DateTimeThe date the page was last modified (derived from the file metadata and used for syndication).
href: &'a strThe page’s location, relative to the site’s base.
meta: &'a G::PageMetaExtra metadata specified in the Entry.
content: Content<'a>The page’s content.
If you want to use the default renderer, just render the page itself.
html! {
div(id="content") : page;
}Implementations§
Trait Implementations§
impl<'a, G> Copy for BasePage<'a, G>
Auto Trait Implementations§
impl<'a, G> Freeze for BasePage<'a, G>
impl<'a, G> RefUnwindSafe for BasePage<'a, G>
impl<'a, G> Send for BasePage<'a, G>
impl<'a, G> Sync for BasePage<'a, G>
impl<'a, G> Unpin for BasePage<'a, G>
impl<'a, G> UnwindSafe for BasePage<'a, G>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more