aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/content/index.ts
blob: 6eaa3de840bad8349bf9baaf55c6b8326421fc64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()