summaryrefslogtreecommitdiffstats
path: root/templates/index.html
blob: 83474682bedb2d1241149fbbdb984b46c3ac5034 (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
{{ define "index" }}
<html>
{{ template "head" . }}

<header>
  <div>
    <img src="/static/bunny.png">
  </div>
  <div>
    <h1>{{ .meta.Title }}</h1>
    <h2>{{ .meta.Description }}</h2>
  </div>
</header>

<body>
  <main>
    {{ range $key, $value := .categories }}
    <div class="index-category">{{ $key }}</div>
    <div class="index">
      {{ range $value }}
      <div class="index-name"><a href="/{{ .Path }}">{{ .Name }}</a></div>
      <div class="desc">{{ .Desc }}</div>
      <div>{{ .Idle }}</div>
      {{ end }}
    </div>
    {{ end }}
  </main>
</body>

</html>
{{ end }}