aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.tmpl')
-rw-r--r--templates/base.tmpl25
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/base.tmpl b/templates/base.tmpl
new file mode 100644
index 0000000..2ee087a
--- /dev/null
+++ b/templates/base.tmpl
@@ -0,0 +1,25 @@
+{{define "header"}}
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>ListenDiary</title>
+ <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet">
+ <link rel="stylesheet" href="static/style.css">
+ </head>
+ <body>
+<header>
+ <div id="center">
+ <h1><a href="/">ListenDiary</a></h1>
+ <a href="/settings" class="user">{{ .Session.UserName }}</a>
+ </div>
+</header>
+<div id="main">
+{{end}}
+
+{{define "footer"}}
+</div>
+ </body>
+</html>
+{{end}}