hidrocor

ref: master

templates/layout.html


 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>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{ .Title }}</title>
    <style>
      body {
        background-color: #FFFFFF;
        color: #111111;
        text-align: center;
        max-width: 960px;
        margin: 0 auto;
        padding: 0 1rem;
        font-family: sans-serif;
      }

      a {
        color: #001f3f;
      }

      h1 {
        font-size: 2.25rem;
        line-height: 2.5rem;
      }

      article {
        text-align: left;
      }

      @media (prefers-color-scheme: dark) {
        body {
          background-color: #111111;
          color: #DDDDDD;
        }

        a {
          color: #0074D9;
        }
      }
    </style>
  </head>

  <body>
    <article>
      {{ if .Title }}
        <h1> {{ .Title }} </h1>
      {{ end }}

      {{ .Content }}
    </article>
  </body>
</html>