Skip to content

Commit

Permalink
fix: corrected site-wide meta
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Feb 28, 2024
1 parent 41c0969 commit 4c7b77d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions crates/site-app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,29 @@ use crate::{

#[component]
pub fn App() -> impl IntoView {
// dummy change
// Provides context that manages stylesheets, titles, meta tags, etc.
provide_meta_context();

view! {
<Style>{include_str!("../style/fonts.css")}</Style>
<Stylesheet id="leptos" href="/pkg/site.css"/>

// sets the document title
<Title text="Welcome to Leptos"/>
<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=|| {
let mut outside_errors = Errors::default();
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/>
Expand Down

0 comments on commit 4c7b77d

Please sign in to comment.