diff options
Diffstat (limited to 'example-site/inc/base.html')
| -rw-r--r-- | example-site/inc/base.html | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/example-site/inc/base.html b/example-site/inc/base.html new file mode 100644 index 0000000..959c7d6 --- /dev/null +++ b/example-site/inc/base.html @@ -0,0 +1,53 @@ +<!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"> + <meta name="author" content="{{.Global.App.Author.Name}}"> + <meta name="description" content="{{.Global.App.Description}}"> + + <!-- + <link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png"> + <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png"> + <link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png"> + <link rel="manifest" href="/static/site.webmanifest"> + --> + +{{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> |
