add theme_color to config and use it for embed metadata

resolves #1
This commit is contained in:
zyl 2024-11-13 11:23:09 -08:00
parent 1875cc9d5c
commit 847f0c7ee7
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
5 changed files with 16 additions and 8 deletions

View file

@ -42,6 +42,8 @@ pub struct SiteConfig {
pub title: String,
/// The site's description? Not sure if this will actually be used or not
pub description: String,
/// the site's theme color for embed metadata
pub theme_color: String,
/// The site's build directory. Defaults to <site>/build if not specified.
pub build: Option<String>,
/// A list of Sass stylesheets that will be built.
@ -68,6 +70,7 @@ impl SiteConfig {
base_url,
title,
description: Default::default(),
theme_color: "#ffc4fc".to_string(),
build: None,
sass_styles: vec!["index.scss".into()],
cdn_url,