Switch over to WebAssembly, Rust and Yew #35

Merged
BlakeRain merged 87 commits from yew-static into main 2023-08-30 18:01:40 +00:00
2 changed files with 17 additions and 3 deletions
Showing only changes of commit a03582f47b - Show all commits

View File

@ -1,15 +1,22 @@
use yew::{function_component, html, Html}; use yew::{function_component, html, Html};
use crate::{ use crate::{
components::{blog::post_card_list::PostCardList, title::Title}, components::{blog::post_card_list::PostCardList, seo::WebPageSeo, title::Title},
model::{ProvideBlogDetails, ProvideTags}, model::{ProvideBlogDetails, ProvideTags},
pages::Route,
}; };
#[function_component(Page)] #[function_component(Page)]
pub fn page() -> Html { pub fn page() -> Html {
html! { html! {
<ProvideTags> <ProvideTags>
<Title title={"Blake Rain"} /> <Title title={"Blake Rain's Blog"} />
<WebPageSeo
route={Route::Blog}
title={"Blake Rain's Blog"}
excerpt={Some("Blake Rain's Blog")}
index={true}
follow={true} />
<ProvideBlogDetails> <ProvideBlogDetails>
<PostCardList /> <PostCardList />
</ProvideBlogDetails> </ProvideBlogDetails>

View File

@ -1,8 +1,9 @@
use yew::{function_component, html, Html}; use yew::{function_component, html, Html};
use crate::{ use crate::{
components::{blog::post_card_list::PostCardList, title::Title}, components::{blog::post_card_list::PostCardList, seo::WebPageSeo, title::Title},
model::{ProvideBlogDetails, ProvideTags}, model::{ProvideBlogDetails, ProvideTags},
pages::Route,
}; };
#[function_component(Page)] #[function_component(Page)]
@ -10,6 +11,12 @@ pub fn page() -> Html {
html! { html! {
<ProvideTags> <ProvideTags>
<Title title={"Blake Rain"} /> <Title title={"Blake Rain"} />
<WebPageSeo
route={Route::Home}
title={"Blake Rain"}
excerpt={Some("Blake Rain's Webpage")}
index={true}
follow={true} />
<ProvideBlogDetails> <ProvideBlogDetails>
<PostCardList /> <PostCardList />
</ProvideBlogDetails> </ProvideBlogDetails>