Switch over to WebAssembly, Rust and Yew #35
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user