Rust library to generate static websites
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: update docs and article

+2 -2
+1 -1
website/content/docs/images.md
··· 96 96 impl Route for ImagePage { 97 97 fn render(&self, ctx: &mut PageContext) -> impl Into<RenderResult> { 98 98 let image = ctx.assets.add_image("path/to/image.jpg")?; 99 - let placeholder = image.placeholder(); 99 + let placeholder = image.placeholder()?; 100 100 101 101 Ok(format!("<img src=\"{}\" alt=\"Image with placeholder\" style=\"background-image: url('{}'); background-size: cover;\" />", image.url(), placeholder.data_uri())) 102 102 }
+1 -1
website/content/news/2026-in-the-cursed-lands.md
··· 55 55 impl Route for ImagePage { 56 56 fn render(&self, ctx: &mut PageContext) -> impl Into<RenderResult> { 57 57 let image = ctx.assets.add_image("path/to/image.jpg")?; 58 - let placeholder = image.placeholder(); 58 + let placeholder = image.placeholder()?; 59 59 60 60 Ok(format!("<img src=\"{}\" alt=\"Image with placeholder\" style=\"background-image: url('{}'); background-size: cover;\" />", image.url(), placeholder.data_uri())) 61 61 }