From cb5b539ccc4b8e78b474cbf5bdc25baa1fcb6617 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Thu, 9 Mar 2023 22:50:37 -0500 Subject: css hack to make images wider than the article Signed-off-by: Xe Iaso --- lib/xesite_templates/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/xesite_templates/src/lib.rs b/lib/xesite_templates/src/lib.rs index 413aa90..e3f5704 100644 --- a/lib/xesite_templates/src/lib.rs +++ b/lib/xesite_templates/src/lib.rs @@ -44,9 +44,9 @@ pub fn picture(path: String) -> Markup { pub fn hero(file: String, prompt: Option, ai: Option) -> Markup { let ai = ai.unwrap_or("MidJourney".to_string()); html! { - meta property="og:image" content={"https://cdn.xeiaso.net/file/christine-static/hero/" (file) "-smol.png"} + meta property="og:image" content={"https://cdn.xeiaso.net/file/christine-static/hero/" (file) "-smol.png"}; figure.hero style="margin:0" { - picture style="margin:0" { + picture.hero style="margin:0" { source type="image/avif" srcset={"https://cdn.xeiaso.net/file/christine-static/hero/" (file) ".avif"}; source type="image/webp" srcset={"https://cdn.xeiaso.net/file/christine-static/hero/" (file) ".webp"}; img style="padding:0" loading="lazy" alt={"hero image " (file)} src={"https://cdn.xeiaso.net/file/christine-static/hero/" (file) "-smol.png"}; -- cgit v1.2.3