From 7218c54ec57350abf7c6919ec1b99bbc088ca9e4 Mon Sep 17 00:00:00 2001 From: zeldan Date: Sat, 28 Dec 2024 15:58:05 +0100 Subject: [PATCH 1/3] feat: change contact from and subject --- src/ssr/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssr/api.rs b/src/ssr/api.rs index 4bffe49..df2f47b 100644 --- a/src/ssr/api.rs +++ b/src/ssr/api.rs @@ -144,9 +144,9 @@ pub async fn hire_us(data: HireUsRequest) -> Result<(), ServerFnError> { .build::(); let email = Message::builder() - .from(data.email.parse()?) + .from(env::var("SMTP_USER")?.parse()?) .to(env::var("SMTP_USER")?.parse()?) - .subject(data.subject) + .subject(format!("{} - {}", data.email, data.subject)) .header(ContentType::TEXT_HTML) .body(data.message) .expect("failed to build email"); From 35ee0f6cd99dd42dfd63702e9cda952abe414b0a Mon Sep 17 00:00:00 2001 From: zeldan Date: Mon, 30 Dec 2024 00:05:25 +0100 Subject: [PATCH 2/3] feat: update meta description --- src/app.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app.rs b/src/app.rs index 5769560..7a27728 100644 --- a/src/app.rs +++ b/src/app.rs @@ -27,7 +27,7 @@ pub fn shell(options: LeptosOptions) -> impl IntoView { impl IntoView { /> impl IntoView { /> @@ -75,7 +75,7 @@ pub fn shell(options: LeptosOptions) -> impl IntoView { name="twitter:image" content="https://static.rust-dd.com/rust-dd_custom_bg.png" /> - + From 7834909e86e8b595286874fdc915e77da622904e Mon Sep 17 00:00:00 2001 From: zeldan Date: Mon, 30 Dec 2024 00:26:55 +0100 Subject: [PATCH 3/3] feat: update title --- src/app.rs | 8 ++++---- src/pages/home.rs | 2 +- src/ssr/server_utils.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app.rs b/src/app.rs index 7a27728..d0f9c71 100644 --- a/src/app.rs +++ b/src/app.rs @@ -22,7 +22,7 @@ pub fn shell(options: LeptosOptions) -> impl IntoView { - + <Title text="Rust-DD Blog – Tech Insights & Consulting" /> <Meta name="hostname" content="rust-dd.com" /> <Meta name="expected-hostname" content="rust-dd.com" /> <Meta @@ -40,11 +40,11 @@ pub fn shell(options: LeptosOptions) -> impl IntoView { <Meta property="og:type" content="website" /> <Meta property="og:title" - content="Tech Diaries - The Official Rust-DD Developer Blog" + content="Rust-DD Blog – Tech Insights & Consulting" /> <Meta property="og:site_name" - content="Tech Diaries - The Official Rust-DD Developer Blog" + content="Rust-DD Blog – Tech Insights & Consulting" /> <Meta property="og:description" @@ -63,7 +63,7 @@ pub fn shell(options: LeptosOptions) -> impl IntoView { <Meta name="twitter:card" content="summary_large_image" /> <Meta name="twitter:title" - content="Tech Diaries - The Official Rust-DD Developer Blog" + content="Rust-DD Blog – Tech Insights & Consulting" /> <Meta name="twitter:description" diff --git a/src/pages/home.rs b/src/pages/home.rs index 9bd4537..76328c4 100644 --- a/src/pages/home.rs +++ b/src/pages/home.rs @@ -18,7 +18,7 @@ pub fn Component() -> impl IntoView { ); view! { - <Title text="Tech Diaries - The Official Rust-DD Developer Blog" /> + <Title text="Rust-DD Blog – Tech Insights & Consulting" /> <Suspense fallback=|| ()> <div class="gap-4 columns-1 sm:columns-2"> <For diff --git a/src/ssr/server_utils.rs b/src/ssr/server_utils.rs index 0c04d91..7ddd8c0 100644 --- a/src/ssr/server_utils.rs +++ b/src/ssr/server_utils.rs @@ -91,7 +91,7 @@ pub async fn generate_rss(db: Surreal<Client>) -> leptos::error::Result<String, let channel = ChannelBuilder::default() .title("Rust-DD") .link("https://rust-dd.com") - .description("Tech Diaries - The Official Rust-DD Developer Blog") + .description("Rust-DD Blog – Tech Insights & Consulting") .items( posts .lock()