aboutsummaryrefslogtreecommitdiff
path: root/example-site/inc/base.html
blob: 959c7d6959a07ea424e57ddabf524d532ae5f729 (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
52
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>