From 960662954d0c4ba6ce07e18cc0236d6aadce42c8 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Fri, 28 Oct 2022 19:37:17 +0200 Subject: Frontend: Show result website's title and description --- frontend/src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'frontend') diff --git a/frontend/src/main.rs b/frontend/src/main.rs index 2d7cf3a..46b9232 100644 --- a/frontend/src/main.rs +++ b/frontend/src/main.rs @@ -13,7 +13,9 @@ use yew::prelude::*; #[derive(Debug, Clone, Deserialize)] struct CrawledResource { url: String, - priority: u32, //how do we even calculate this + title: String, + description: String, + priority: u32, word: Arc, } @@ -72,7 +74,7 @@ fn osse() -> Html { html! {
//Show page title and description - {r.url.to_owned()} + {r.url.to_owned()}{"--"}{r.title.to_owned()}{"----"}{r.description.to_owned()}
} }) -- cgit 1.4.1