update theme color

This commit is contained in:
zyl 2024-06-21 17:14:14 -07:00
parent 5f145757df
commit e070fc6935
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()), description: Some(self.inner.desc.clone()),
image: Some(self.inner.get_header_image(site_config)?), image: Some(self.inner.get_header_image(site_config)?),
url: None, url: None,
theme_color: "rgb(255, 196, 252)".to_string(), theme_color: EmbedMetadata::default_theme_color(),
large_image: true, large_image: true,
} }
.build()) .build())

View file

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

View file

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