summaryrefslogtreecommitdiffstats
path: root/layouts/index.html
blob: 1d1c3e831b92a7dba9dbafdfe9afa36ed1999596 (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
38
39
40
{{ partial "head.html" . }}
<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
	<main class="content container" role="main">
    <section class="about">
      {{ .Content }}
    </section>
		<section class="recent">
			<h2>Recent Posts</h2>
			<ul class="posts">
				{{ range first 3 .Data.Pages }}
				<li>
					<a class="post-title" href="{{ .RelPermalink | replaceRE "/$" "" }}">{{ .Title }}</a>
					<time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time>
				</li>
				{{ end }}
			</ul>
		</section>
    <section class="contact">
			<h2>Contact</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="pgpkey">{{ .fingerprint }}</a>
      {{ end }}
    </footer>
	</main>
  {{ partial "sidebar.html" . }}
</body>
</html>