init elas atelier

This commit is contained in:
2026-05-14 08:24:41 +02:00
parent 3b704a24a7
commit 38f33cacb1
19 changed files with 1436 additions and 657 deletions
+19 -6
View File
@@ -16,14 +16,15 @@ pub struct SiteConfig {
impl Default for SiteConfig {
fn default() -> Self {
Self {
title: "Narlblog".to_string(),
subtitle: "A clean, modern blog".to_string(),
welcome_title: "Welcome to my blog".to_string(),
title: "Ela's Atelier".to_string(),
subtitle: "Works on paper, canvas, and elsewhere".to_string(),
welcome_title: "Works on view".to_string(),
welcome_subtitle:
"Thoughts on software, design, and building things with Rust and Astro.".to_string(),
footer: "Built with Rust & Astro".to_string(),
"An ongoing arrangement of pieces, sketches, and stray observations."
.to_string(),
footer: "Hand-arranged with care".to_string(),
favicon: "/favicon.svg".to_string(),
theme: "mocha".to_string(),
theme: "salon".to_string(),
custom_css: "".to_string(),
}
}
@@ -62,6 +63,12 @@ pub struct PostMeta {
pub draft: bool,
}
#[derive(Serialize, Clone)]
pub struct CoverImage {
pub url: String,
pub alt: String,
}
#[derive(Serialize)]
pub struct PostInfo {
pub slug: String,
@@ -74,6 +81,9 @@ pub struct PostInfo {
pub draft: bool,
pub reading_time: u32,
pub excerpt: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub cover_image: Option<CoverImage>,
pub image_count: u32,
}
#[derive(Serialize)]
@@ -88,6 +98,9 @@ pub struct PostDetail {
pub draft: bool,
pub reading_time: u32,
pub content: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub cover_image: Option<CoverImage>,
pub image_count: u32,
}
#[derive(Deserialize)]