mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 02:26:42 -07:00
many many changes
This commit is contained in:
parent
80bc863cdf
commit
efa0d03315
22 changed files with 360 additions and 45 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue