Implement the Pico CSS theme editor.

This commit is contained in:
2026-07-20 14:28:47 +02:00
parent 1d190d33c5
commit fe7dd82f33
20 changed files with 1033 additions and 161 deletions

View File

@@ -1598,10 +1598,9 @@ fn starter_partials() -> HashMap<String, String> {
}
fn pico_stylesheet_href(metadata: &ProjectMetadata) -> Option<String> {
metadata
.pico_theme
.as_ref()
.map(|_| "/assets/pico.min.css".to_string())
Some(crate::model::pico_stylesheet_href(
metadata.pico_theme.as_deref(),
))
}
fn calendar_initial_parts(post: &Post) -> (i32, u32) {