From 333fb003d01b46500f19404811ebaacddb2ed7e0 Mon Sep 17 00:00:00 2001 From: zyl Date: Fri, 21 Jun 2024 17:14:14 -0700 Subject: [PATCH] update theme color --- src/blog.rs | 2 +- src/images.rs | 2 +- src/resource.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/blog.rs b/src/blog.rs index ff42808..34ea2ab 100644 --- a/src/blog.rs +++ b/src/blog.rs @@ -90,7 +90,7 @@ impl ResourceMethods for ResourceMetadata for ResourceMetadata { 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()) diff --git a/src/resource.rs b/src/resource.rs index ca3502b..9379d1f 100644 --- a/src/resource.rs +++ b/src/resource.rs @@ -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() } }