~yerinalexey/gobin

ref: 478164c98843185c65508a38552befc51838da7b gobin/templates/home.html -rw-r--r-- 492 bytes
478164c9 — Alexey Yerin Add option to set log file 9 months ago
                                                                                
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
{{ define "home" }}
<!DOCTYPE html>
<html>
  <head>
    {{ template "head" }}
  </head>
  <body>
    {{ template "header" }}

    <main>
      {{ if . }}
      <h1>Explore public pastes</h1>

      {{ range . }}
      <div class="paste">
        <a class="link" href="{{ .Link }}">Paste #{{ .Id }}</a>
        <pre class="paste__summary">{{ .Summary }}</pre>
      </div>
      {{ end }}
      {{ else }}
      There's nothing here yet
      {{ end }}
    </main>
  </body>
</html>
{{ end }}