aboutsummaryrefslogtreecommitdiff
path: root/templates/note.html
blob: a72453ff1b7dc9232055db1319a1c0fe1b1b9dc0 (plain)
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
{{ template "base.html" . }}

{{ define "title" }}{{ .Page.Title }}{{ end }}
{{ define "description" }}{{ .Page.Summary }}{{ end }}

{{ define "content" }}
<section>
  <h1>{{ .Page.Title }}</h1>
  <p><cap>{{ .Page.Type }}</cap>, {{ .Page.Created.Format "Jan 2, 2006" }}, on <a href="{{ .Config.BaseURL }}">{{ .Config.Title }}'s blog</a></p>
  <div>
    {{ .Page.HTML }}
  </div>
</section>

<section>
  <br><hr>
  <p><big><strong>Other notes</strong></big></p>
  <ul>
    {{ range random 20 .Pages }}
      {{ if and (eq .Type "note") (not .Draft) }}
        <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
      {{ end }}
    {{ end }}
  </ul>
</section>
{{ end }}