summaryrefslogtreecommitdiffstats
path: root/templates/base.tmpl
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2017-06-03 18:00:51 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2017-06-03 18:00:51 -0400
commitf154ae1ec88146017abf3de9d14d119facb5fc4c (patch)
treecd857864dd52b088ccc8943b64fe9bbd59c04dc8 /templates/base.tmpl
parent3f3cb7c7cede379914eed51c57e58f66ffdd1856 (diff)
downloadlastfm-api-f154ae1ec88146017abf3de9d14d119facb5fc4c.tar.gz
Basic web app
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}}