many many changes

This commit is contained in:
Zoey 2023-06-09 21:55:04 -07:00
parent 80bc863cdf
commit efa0d03315
22 changed files with 360 additions and 45 deletions

View file

@ -25,7 +25,7 @@ struct TemplateData<'a> {
/// Struct used to build the site.
pub struct SiteBuilder<'a> {
/// The matter instance used to extract front matter.
matter: Matter<YAML>,
pub(crate) matter: Matter<YAML>,
/// The Handlebars registry used to render templates.
pub(crate) reg: Handlebars<'a>,
/// The site info used to build the site.
@ -242,4 +242,9 @@ impl<'a> SiteBuilder<'a> {
pub fn build_images(&self) -> anyhow::Result<()> {
crate::images::build_images(self)
}
/// Builds the site's blog.
pub fn build_blog(&self) -> anyhow::Result<()> {
crate::blog::build_blog(self)
}
}