diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-07-18 16:27:24 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-07-18 16:27:24 -0400 |
| commit | bcf6d391f17a193c81ad6643f8d006de6c6abad8 (patch) | |
| tree | b8eaec45b02d79f8d51d6726ffbbe34ce5de2ed7 /example-site/inc/base.html | |
| parent | 904e37a88a6a2eab3919f7f2c40bbb2c07544a7c (diff) | |
| download | go-website-0.0.13.tar.gz go-website-0.0.13.tar.xz | |
Adjust the program a bit, remove clunky "head" templates. Add an example site among other improvementsv0.0.13
Diffstat (limited to 'example-site/inc/base.html')
| -rw-r--r-- | example-site/inc/base.html | 51 |
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> |
