diff --git a/examples/counter/index.html b/examples/counter/index.html index b5ec4d243..75fa1f12a 100644 --- a/examples/counter/index.html +++ b/examples/counter/index.html @@ -2,6 +2,7 @@ + \ No newline at end of file diff --git a/examples/counter/public/favicon.ico b/examples/counter/public/favicon.ico new file mode 100644 index 000000000..2ba8527cb Binary files /dev/null and b/examples/counter/public/favicon.ico differ diff --git a/examples/counter_isomorphic/Cargo.toml b/examples/counter_isomorphic/Cargo.toml index 23c5ea5b5..f6bdec566 100644 --- a/examples/counter_isomorphic/Cargo.toml +++ b/examples/counter_isomorphic/Cargo.toml @@ -54,7 +54,7 @@ site-pkg-dir = "pkg" # [Optional] The source CSS file. If it ends with .sass or .scss then it will be compiled by dart-sass into CSS. The CSS is optimized by Lightning CSS before being written to //app.css # style-file = "src/styles/tailwind.css" # [Optional] Files in the asset-dir will be copied to the site-root directory -# assets-dir = "static/assets" +assets-dir = "public" # The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup. site-address = "127.0.0.1:3000" # The port to use for automatic reload monitoring diff --git a/examples/counter_isomorphic/public/favicon.ico b/examples/counter_isomorphic/public/favicon.ico new file mode 100644 index 000000000..2ba8527cb Binary files /dev/null and b/examples/counter_isomorphic/public/favicon.ico differ diff --git a/examples/counter_isomorphic/src/counters.rs b/examples/counter_isomorphic/src/counters.rs index b09613a9c..cf3b15f7b 100644 --- a/examples/counter_isomorphic/src/counters.rs +++ b/examples/counter_isomorphic/src/counters.rs @@ -1,5 +1,6 @@ use leptos::*; use leptos_router::*; +use leptos_meta::*; #[cfg(feature = "ssr")] use std::sync::atomic::{AtomicI32, Ordering}; @@ -44,6 +45,7 @@ pub async fn clear_server_count() -> Result { } #[component] pub fn Counters(cx: Scope) -> impl IntoView { + provide_meta_context(cx); view! { cx, @@ -59,6 +61,7 @@ pub fn Counters(cx: Scope) -> impl IntoView {
  • "Multi-User"
  • +
    +