aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-03-09 22:57:17 -0500
committerXe Iaso <me@xeiaso.net>2023-03-09 22:57:17 -0500
commit216602e3a482fd2261c1acc9bc7c0dc62dd493b6 (patch)
tree81894ceec8f4868f1da0531e4832932b92a74e08 /lib
parentcb5b539ccc4b8e78b474cbf5bdc25baa1fcb6617 (diff)
downloadxesite-216602e3a482fd2261c1acc9bc7c0dc62dd493b6.tar.xz
xesite-216602e3a482fd2261c1acc9bc7c0dc62dd493b6.zip
Revert "css hack to make images wider than the article"
This reverts commit cb5b539ccc4b8e78b474cbf5bdc25baa1fcb6617.
Diffstat (limited to 'lib')
-rw-r--r--lib/xesite_templates/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xesite_templates/src/lib.rs b/lib/xesite_templates/src/lib.rs
index e3f5704..413aa90 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<String>, ai: Option<String>) -> 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.hero style="margin:0" {
+ picture 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"};