aboutsummaryrefslogtreecommitdiff
path: root/example-site/inc/base.html
blob: 2f93ec76761212264ce17e728086e407c685995a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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>