From f2b139649b645f67c73df41e8186e22ccb2c7b96 Mon Sep 17 00:00:00 2001 From: Xe Date: Sat, 1 Oct 2022 15:28:13 +0000 Subject: prompt engineering post Signed-off-by: Xe --- lib/xesite_templates/src/lib.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/xesite_templates/src/lib.rs b/lib/xesite_templates/src/lib.rs index 0a8ff1d..4b920b8 100644 --- a/lib/xesite_templates/src/lib.rs +++ b/lib/xesite_templates/src/lib.rs @@ -28,10 +28,12 @@ pub fn slide(name: String, essential: bool) -> Markup { pub fn picture(path: String) -> Markup { html! { - picture style="margin:0" { - source type="image/avif" srcset={"https://cdn.xeiaso.net/file/christine-static/" (path) ".avif"}; - source type="image/webp" srcset={"https://cdn.xeiaso.net/file/christine-static/" (path) ".webp"}; - img style="padding:0" loading="lazy" alt={"hero image " (path)} src={"https://cdn.xeiaso.net/file/christine-static/" (path) "-smol.png"}; + a href={"https://cdn.xeiaso.net/file/christine-static/" (path) ".jpg"} target="_blank" { + picture style="margin:0" { + source type="image/avif" srcset={"https://cdn.xeiaso.net/file/christine-static/" (path) ".avif"}; + source type="image/webp" srcset={"https://cdn.xeiaso.net/file/christine-static/" (path) ".webp"}; + img style="padding:0" loading="lazy" alt={"hero image " (path)} src={"https://cdn.xeiaso.net/file/christine-static/" (path) "-smol.png"}; + } } } } -- cgit v1.2.3