update theme color

This commit is contained in:
zyl 2024-06-21 17:14:14 -07:00
parent f6079f536f
commit 333fb003d0
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -90,7 +90,7 @@ impl ResourceMethods<BlogPostTemplateData> for ResourceMetadata<BlogPostMetadata
description: Some(self.inner.desc.clone()),
image: Some(self.inner.get_header_image(site_config)?),
url: None,
theme_color: "rgb(255, 196, 252)".to_string(),
theme_color: EmbedMetadata::default_theme_color(),
large_image: true,
}
.build())

View file

@ -72,7 +72,7 @@ impl ResourceMethods<ImageTemplateData> for ResourceMetadata<ImageMetadata> {
description: self.inner.desc.clone(),
image: Some(self.inner.get_image_url(site_config)?),
url: None,
theme_color: "rgb(255, 196, 252)".to_string(),
theme_color: EmbedMetadata::default_theme_color(),
large_image: true,
}
.build())

View file

@ -125,8 +125,8 @@ impl EmbedMetadata {
s
}
fn default_theme_color() -> String {
"rgb(255, 196, 252)".to_string()
pub fn default_theme_color() -> String {
"ffc4fc".to_string()
}
}