~yerinalexey/gobin

ref: aa308ac2755cf639d7a89894eeb4d59a99facfd9 gobin/templates/home.html -rw-r--r-- 492 bytes
aa308ac2 — Alexey Yerin feat: show public pastes on home page 1 year, 1 month 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 }}