summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/html/base.tmpl.html17
-rw-r--r--ui/html/pages/index.tmpl.html6
2 files changed, 23 insertions, 0 deletions
diff --git a/ui/html/base.tmpl.html b/ui/html/base.tmpl.html
new file mode 100644
index 0000000..6b05b70
--- /dev/null
+++ b/ui/html/base.tmpl.html
@@ -0,0 +1,17 @@
+{{define "base"}}
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>{{template "title" .}} - Paterissa</title>
+</head>
+<body>
+ <header>
+ <h1><a href="/">Paterissa</a></h1>
+ </header>
+ <main>
+ {{template "main" .}}
+ </main>
+</body>
+</html>
+{{end}}
diff --git a/ui/html/pages/index.tmpl.html b/ui/html/pages/index.tmpl.html
new file mode 100644
index 0000000..c252465
--- /dev/null
+++ b/ui/html/pages/index.tmpl.html
@@ -0,0 +1,6 @@
+{{define "title"}}Blog{{end}}
+
+{{define "main"}}
+ <h2>Blog</h2>
+ <p>Home of {{.Webmaster}}</p>
+{{end}}