-
-
+
+
+
+
diff --git a/src/pages/home.rs b/src/pages/home.rs
index 76328c4..98ed7d2 100644
--- a/src/pages/home.rs
+++ b/src/pages/home.rs
@@ -20,7 +20,7 @@ pub fn Component() -> impl IntoView {
view! {
-
+
+
{"rust-dd://"}
impl IntoView { } } } - class="text-lg font-bold transition-all duration-500 sm:text-3xl hover:text-[#ffef5c]" + class="transition-all duration-500 hover:underline hover:text-[#ffef5c]" > - blog + {"blog"} +{"."}
- references + {"references"} +{"."}
- hire us! + {"hire.us"}
+
impl IntoView {
>
- }>
-
-
-
-
-
-
-
}
}
diff --git a/src/ssr/api.rs b/src/ssr/api.rs
index df2f47b..2be374a 100644
--- a/src/ssr/api.rs
+++ b/src/ssr/api.rs
@@ -1,5 +1,5 @@
use std::collections::BTreeMap;
-
+use chrono::Datelike;
use leptos::prelude::{server, ServerFnError};
use serde::{Deserialize, Serialize};
@@ -40,8 +40,8 @@ pub async fn select_posts(
.unwrap()
.with_timezone(&Utc);
let naive_date = date_time.date_naive();
- let formatted_date = naive_date.format("%b %-d, %Y").to_string();
- post.created_at = formatted_date.into();
+ let formatted_date = format!("{} • {:02}", naive_date.year(), naive_date.month());
+ post.created_at = formatted_date;
});
Ok(posts)