~evanj/evanjon.es

ref: 3d3bf1d95ab2d9409b24eccba85b8f8d46b159ee evanjon.es/internal/s/tmpl/html/item.html -rw-r--r-- 1.3 KiB
3d3bf1d9Evan J Feat(vendor): Vendor updates for go1.16. 11 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{{with .Item.Must}}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  {{ template "html/_head.html" $ }}
  <title>{{.Val "name"}} | {{$.Aside.Must.Val "string2"}}</title>
  <!-- For some reason templates blows its brains here. -->
  {{with .Val "short"}}
  <meta name=description content="{{.}}" />
  {{end}}
</head>
<body>
  <div>
    {{ template "html/_styles.html" $ }}
    {{ template "html/_aside.html" $ }}
    <main>
      <div>
        <h1 id=more>{{.Val "name"}}</h1>
        {{if $.ShowDate}}
        <time>{{.Val "date" | date}}</time>
        {{end}}
        <article>{{.Val "desc" | html }}</article>
      </div>
      {{if or (.Ref "prev") (.Ref "next")}}
      <table>
        <tr>
          {{with .Ref "prev"}}
          <td width="50%">
            <div>
              <a href='/{{.Must.Val "slug"}}'>&larr; {{.Must.Val "name"}}</a>
            </div>
          </td>
          {{end}}
          {{with .Ref "next"}}
          <td width="50%">
            <div style='text-align: right;'>
              <a href='/{{.Must.Val "slug"}}'>{{.Must.Val "name"}} &rarr;</a>
            </div>
          </td>
          {{end}}
        </tr>
      </table>
      {{end}}
    </main>
  </div>
  {{ template "html/_tracker.html" $ }}
</body>
</html>
{{end}}