about summary refs log tree commit diff stats
path: root/layouts/index.html
blob: ad04a63d8324b718aac11e6df41bf7bd7205f3f8 (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
27
28
29
30
31
32
33
34
35
36
37
{{ define "main" -}}
<main class="h-card">
  <img height="128" width="128" class="u-photo" src="/img/me-thumb.jpg" alt="photo of me" />
  <h1 class="p-name">Alan Pearce</h1>
  {{ .Content }}
  <section>
    <h2>Latest Posts</h2>
    <ul>
      {{- range first 3 .Site.RegularPages }}
      <li class="h-entry">
        <a class="u-url p-name" href="{{ .RelPermalink }}">{{ .Title }}</a>
        <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time>
      </li>
      {{- end }}
    </ul>
  </section>
  <section>
    <h2>Elsewhere on the Internet</h2>
    <ul>
      {{- range .Site.Menus.contact }}
      <li>
        {{- if hasPrefix .URL "mailto:" }}
        <a href="{{ .URL }}" class="u-email email" rel="me">{{ .Name }}</a>
        {{- else }}
        <a href="{{ .URL }}" class="u-url url" rel="me">{{ .Name }}</a>
        {{- end }}
      </li>
      {{- end }}
    </ul>
  </section>
  <footer>
    {{- with .Site.Params.GPG }}
    GPG Key: <a href="{{ .url }}" rel="u-key pgpkey">{{ .fingerprint }}</a>
    {{- end }}
  </footer>
</main>
{{- end }}