diff --git a/src/components/codeblock.rs b/src/components/codeblock.rs new file mode 100644 index 0000000..ff3a26f --- /dev/null +++ b/src/components/codeblock.rs @@ -0,0 +1,8 @@ +use leptos::*; + +#[component] +pub fn CodeBlock(cx: Scope, children: Children) -> impl IntoView { + view! {cx, +
{children(cx)}
+ }
+}
diff --git a/src/components/mod.rs b/src/components/mod.rs
new file mode 100644
index 0000000..c411207
--- /dev/null
+++ b/src/components/mod.rs
@@ -0,0 +1,2 @@
+mod codeblock;
+pub use codeblock::*;
diff --git a/src/lib.rs b/src/lib.rs
index 1b69fcd..70dc848 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,4 +1,5 @@
pub mod app;
+mod components;
mod routes;
use cfg_if::cfg_if;
diff --git a/src/routes/blog/page.rs b/src/routes/blog/page.rs
index 920820e..93a3e25 100644
--- a/src/routes/blog/page.rs
+++ b/src/routes/blog/page.rs
@@ -1,28 +1,29 @@
use leptos::*;
use leptos_meta::*;
+use crate::components::*;
#[component]
pub fn Blog(cx: Scope) -> impl IntoView {
- let es_health_green = concat!(
+ let es_health_green = [
+ "$ kubectl exec -n "Thanks Percona for this excellent article " - "Change Storage Class on Kubernetes on the Fly." + "Change Storage Class on Kubernetes on the Fly."
-"It inspired most of this procedure. Here is the summary" +
"It inspired most of this procedure. Here is the summary"
"kubectl delete -n statefulset --cascade=orphan " " the ""orphan"" option is key here and will allow Kubernetes to delete the statefulset without deleting the pods.""helm upgrade"{es_health_green}
+ "kubectl exec -n -it -- curl localhost:9200/_cluster/health?pretty"