Switch over to WebAssembly, Rust and Yew #35
@ -1,15 +1,22 @@
|
||||
use yew::{function_component, html, Html};
|
||||
|
||||
use crate::{
|
||||
components::{blog::post_card_list::PostCardList, title::Title},
|
||||
components::{blog::post_card_list::PostCardList, seo::WebPageSeo, title::Title},
|
||||
model::{ProvideBlogDetails, ProvideTags},
|
||||
pages::Route,
|
||||
};
|
||||
|
||||
#[function_component(Page)]
|
||||
pub fn page() -> Html {
|
||||
html! {
|
||||
<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>
|
||||
<PostCardList />
|
||||
</ProvideBlogDetails>
|
||||
|
@ -1,8 +1,9 @@
|
||||
use yew::{function_component, html, Html};
|
||||
|
||||
use crate::{
|
||||
components::{blog::post_card_list::PostCardList, title::Title},
|
||||
components::{blog::post_card_list::PostCardList, seo::WebPageSeo, title::Title},
|
||||
model::{ProvideBlogDetails, ProvideTags},
|
||||
pages::Route,
|
||||
};
|
||||
|
||||
#[function_component(Page)]
|
||||
@ -10,6 +11,12 @@ pub fn page() -> Html {
|
||||
html! {
|
||||
<ProvideTags>
|
||||
<Title title={"Blake Rain"} />
|
||||
<WebPageSeo
|
||||
route={Route::Home}
|
||||
title={"Blake Rain"}
|
||||
excerpt={Some("Blake Rain's Webpage")}
|
||||
index={true}
|
||||
follow={true} />
|
||||
<ProvideBlogDetails>
|
||||
<PostCardList />
|
||||
</ProvideBlogDetails>
|
||||
|
Loading…
Reference in New Issue
Block a user