From f906c3121682eebfc3916ad1cfb3ce68915dfc2c Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 14 Oct 2023 23:52:13 +0200 Subject: [PATCH] feat: initial landing page --- routes/[...index].ts | 2 +- src/pages/{ => demo}/about.html | 0 src/pages/{ => demo}/about/index.html | 0 src/pages/{ => demo}/about/me.html | 0 src/pages/demo/index.html | 36 +++++++++++++++++++++++++++ src/pages/index.html | 30 +++------------------- 6 files changed, 40 insertions(+), 28 deletions(-) rename src/pages/{ => demo}/about.html (100%) rename src/pages/{ => demo}/about/index.html (100%) rename src/pages/{ => demo}/about/me.html (100%) create mode 100644 src/pages/demo/index.html diff --git a/routes/[...index].ts b/routes/[...index].ts index a3ec3b8..fe7dc74 100644 --- a/routes/[...index].ts +++ b/routes/[...index].ts @@ -20,7 +20,7 @@ export default eventHandler(async (event) => { } } - if (!!componentType) { + if (!!componentType && !!html) { html = await insertRegistry(html.toString(), componentType); } diff --git a/src/pages/about.html b/src/pages/demo/about.html similarity index 100% rename from src/pages/about.html rename to src/pages/demo/about.html diff --git a/src/pages/about/index.html b/src/pages/demo/about/index.html similarity index 100% rename from src/pages/about/index.html rename to src/pages/demo/about/index.html diff --git a/src/pages/about/me.html b/src/pages/demo/about/me.html similarity index 100% rename from src/pages/about/me.html rename to src/pages/demo/about/me.html diff --git a/src/pages/demo/index.html b/src/pages/demo/index.html new file mode 100644 index 0000000..cbbca10 --- /dev/null +++ b/src/pages/demo/index.html @@ -0,0 +1,36 @@ + + + + + + Hello {{name}} :) + + + + {{ count }} +
+ +
+

some text: {{greeting}}

+ {{greeting}} hey
+ + + + diff --git a/src/pages/index.html b/src/pages/index.html index cbbca10..cd14dc3 100644 --- a/src/pages/index.html +++ b/src/pages/index.html @@ -3,34 +3,10 @@ - Hello {{name}} :) - + McFly: Back to the Basics. Into the Future. - {{ count }} -
- -
-

some text: {{greeting}}

- {{greeting}} hey
- - +

McFly

+ Demo