aboutsummaryrefslogtreecommitdiff
path: root/example-site/inc/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'example-site/inc/base.html')
-rw-r--r--example-site/inc/base.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/example-site/inc/base.html b/example-site/inc/base.html
new file mode 100644
index 0000000..2f93ec7
--- /dev/null
+++ b/example-site/inc/base.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+
+ <link id="maincss" rel="stylesheet" href="/static/style.css" defer>
+
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+ {{if .AuthorName }}
+ <meta name="author" content="{{.AuthorName}}">
+ {{else if .Global.App.Author.Name }}
+ <meta name="author" content="{{.Global.App.Author.Name}}">
+ {{else}}
+ {{end}}
+
+{{if .Title}}
+ <title>{{.Title}}</title>
+{{else}}
+ <title>Please change me!</title>
+{{end}}
+
+{{if .Description}}
+ <meta name="description" content="{{.Description}}">
+{{else}}
+ <meta name="description" content="Draft and or Preview page. Default Description.">
+{{end}}
+
+</head>
+
+<body>
+
+{{if .Description}}{{else}}
+ <h1>
+ <span style="color: red;">
+ This is a draft, preview or otherwise unfinished page.
+ </span>
+ </h1>
+{{end}}
+
+<nav>
+ <a href="/">Home</a>
+
+ <div style="display: block; float: right;">
+ <a href="#">Git</a>
+ </div>
+</nav>
+
+{{.RenderBody}}
+
+</body>