@use super::{layout_html, return_home_html, statics::images_css}; @use crate::{Image, FileType}; @(image: Image, size: Option, max_size: Option<&u64>) @:layout_html(&format!("Image: {}", image.filename()), Some("An image hosted on pict-rs"), { @if let Some(size) = size { } else { @if image.is_video() { @if let Some(size) = max_size { } } else { } } }, { @if let Some(size) = size { Direct Link } else { @if image.is_video() { } else { } Direct Link } @:return_home_html() })
Direct Link