mirror of
https://github.com/zyllian/zyllian.github.io.git
synced 2025-01-18 11:47:01 -08:00
update theme color
This commit is contained in:
parent
5f145757df
commit
e070fc6935
3 changed files with 4 additions and 4 deletions
|
@ -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())
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue