blogpage responsive styles

This commit is contained in:
2024-09-10 21:58:57 +02:00
parent ed8f4037a6
commit a9ef5c8f93
9 changed files with 372 additions and 51 deletions

View File

@ -49,5 +49,8 @@ async fn main() {
}
// TODO Display blog posts
// TODO Markdown notes
// TODO code snippets highlighting
// TODO responsive design
// TODO Colors
// TODO go live pipeline

View File

@ -234,8 +234,11 @@ fn get_export_formats(orig_img_path: &str) -> Vec<ExportFormat> {
.and_then(|ext| ext.to_str());
match path {
Some("jpg" | "jpeg") => vec![ExportFormat::Avif, ExportFormat::Jpeg],
Some("png") => vec![ExportFormat::Avif, ExportFormat::Png],
// THINK: Do we want to enable avif? It's very expensive to encode
// Some("jpg" | "jpeg") => vec![ExportFormat::Avif, ExportFormat::Jpeg],
// Some("png") => vec![ExportFormat::Avif, ExportFormat::Png],
Some("jpg" | "jpeg") => vec![ExportFormat::Jpeg],
Some("png") => vec![ExportFormat::Png],
Some(_) | None => vec![],
}
}

View File

@ -13,7 +13,7 @@ use crate::picture_generator::{
picture_markup_generator::generate_picture_markup, resolutions::get_max_resolution,
};
pub const MAX_BLOG_IMAGE_RESOLUTION: (u32, u32) = (1000, 800);
pub const MAX_BLOG_IMAGE_RESOLUTION: (u32, u32) = (1280, 860);
pub fn deserialize_date<'de, D>(deserializer: D) -> Result<DateTime<Utc>, D::Error>
where