aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorXe <me@christine.website>2022-10-01 15:28:13 +0000
committerXe <me@christine.website>2022-10-01 15:28:13 +0000
commitf2b139649b645f67c73df41e8186e22ccb2c7b96 (patch)
tree82b6d14c27cedd7f8a58558f6286c8924c9aa0ac /lib
parentbb36283bdbe2c0d19c16e1917a88512f7ca460c1 (diff)
downloadxesite-f2b139649b645f67c73df41e8186e22ccb2c7b96.tar.xz
xesite-f2b139649b645f67c73df41e8186e22ccb2c7b96.zip
prompt engineering post
Signed-off-by: Xe <me@christine.website>
Diffstat (limited to 'lib')
-rw-r--r--lib/xesite_templates/src/lib.rs10
1 files changed, 6 insertions, 4 deletions
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"};
+ }
}
}
}