aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..0f1751f
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,23 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>{{block "title" .}}{{.Site}}{{end}}</title>
+<link rel="stylesheet" href="/cgit.css">
+<link rel="shortcut icon" href="/favicon.ico">
+</head>
+<body>
+<div id="cgit">
+{{template "header" .}}
+{{template "tabrow" .}}
+<div class="content">
+{{if .Error}}<div class="error">{{.Error}}</div>{{end}}
+{{if .Notice}}<div class="notice">{{.Notice}}</div>{{end}}
+{{block "main" .}}{{end}}
+</div>
+{{/* cgit's footer names cgit, so this one names the forge. */}}
+<div class="footer">generated by {{.Site}} at {{.Now}}</div>
+</div>
+</body>
+</html>