summaryrefslogtreecommitdiffstats
path: root/src/server/content/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/content/index.ts')
-rw-r--r--src/server/content/index.ts20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/server/content/index.ts b/src/server/content/index.ts
new file mode 100644
index 0000000..6eaa3de
--- /dev/null
+++ b/src/server/content/index.ts
@@ -0,0 +1,20 @@
+import { c } from "../template/vdom.js"
+import code from "../template/syntax.js"
+import Page from "../template/Page.js"
+import { pre } from "../template/html.js"
+
+Page({
+ title: "Welcome",
+ url: "/",
+ isHighlight: true,
+ content() {
+ return c(pre, { class: "pad", },
+ "$ ", c(code, { lang: "bash" }, "sudo cat ~root/msg"),
+ `
+Hello World!
+Welcome to my blog.
+I occassion leave my writings here. Hope you will enjoy them :).
+$`
+ )
+ }
+}).setupRoute()