Create a page header struct.

This commit is contained in:
Tom Alexander
2023-12-17 14:28:27 -05:00
parent 1ff41940a5
commit 35dbab0ceb
6 changed files with 34 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ use serde::Serialize;
/// This is the struct for the writer.toml config file that ends up in each site's root directory.
#[derive(Deserialize, Serialize)]
pub(crate) struct RawConfig {
site_title: String,
pub(super) site_title: Option<String>,
author: Option<String>,
email: Option<String>,
pub(super) use_relative_paths: Option<bool>,
@@ -14,7 +14,7 @@ pub(crate) struct RawConfig {
impl Default for RawConfig {
fn default() -> Self {
RawConfig {
site_title: "My super awesome website".to_owned(),
site_title: None,
author: None,
email: None,
use_relative_paths: None,