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
f6079f536f
commit
333fb003d0
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()),
|
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())
|
||||||
|
|
|
@ -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())
|
||||||
|
|
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue