diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-03-09 22:50:37 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-03-09 22:50:37 -0500 |
| commit | cb5b539ccc4b8e78b474cbf5bdc25baa1fcb6617 (patch) | |
| tree | d3e027d9edff1d0ccde5440cabface65a0a7b043 /lib | |
| parent | 98297cdbfbe2eaeb68bd178882ea0781658337d9 (diff) | |
| download | xesite-cb5b539ccc4b8e78b474cbf5bdc25baa1fcb6617.tar.xz xesite-cb5b539ccc4b8e78b474cbf5bdc25baa1fcb6617.zip | |
css hack to make images wider than the article
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/xesite_templates/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<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 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"}; |
