From 4c7b77dbead3c2bebdb15a5626dde6a460f48f96 Mon Sep 17 00:00:00 2001 From: John Lewis Date: Wed, 28 Feb 2024 12:58:26 -0600 Subject: [PATCH] fix: corrected site-wide meta --- crates/site-app/src/lib.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/crates/site-app/src/lib.rs b/crates/site-app/src/lib.rs index d6fce5c..98512ee 100644 --- a/crates/site-app/src/lib.rs +++ b/crates/site-app/src/lib.rs @@ -16,7 +16,6 @@ use crate::{ #[component] pub fn App() -> impl IntoView { - // dummy change // Provides context that manages stylesheets, titles, meta tags, etc. provide_meta_context(); @@ -24,8 +23,14 @@ pub fn App() -> impl IntoView { - // sets the document title - + <Html lang="en" attr:data-theme="wireframe" /> + + // set the metadata + <Title text="PicturePro"/> + <Meta charset="utf-8"/> + <Meta name="viewport" content="width=device-width, initial-scale=1"/> + <Meta name="description" content="Lorem ipsum dolor sit amet, consectetur adipiscing elit."/> + <Meta name="keywords" content="photo, image, share, sell"/> // content for this welcome page <Router fallback=|| { @@ -33,7 +38,7 @@ pub fn App() -> impl IntoView { outside_errors.insert_with_default_key(AppError::NotFound); view! { <ErrorTemplate outside_errors/> }.into_view() }> - <div data-theme="wireframe" class="w-full min-h-screen flex flex-col items-stretch justify-stretch bg-base-200"> + <div class="w-full min-h-screen flex flex-col items-stretch justify-stretch bg-base-200"> <Navbar/> <Routes> <Route path="" view=pages::home_page::HomePage/>