-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtext.html
41 lines (37 loc) · 1.09 KB
/
text.html
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
<!doctype html>
<html lang=en>
<head>
{{ template "partials/head.html" }}
<meta name="description" content="{{ index .Meta "subtitle" }}">
</head>
<title>
{{ index .Meta "title" }}
</title>
<body>
<main>
<div class="sidenav">
{{ template "partials/nav.html" }}
</div>
<article align="left">
<section class="post-date">
{{ $dateStr := index .Meta "date" }}
{{ $date := parsedate $dateStr }}
{{ $date.Format "02 Jan, 2006" }}
</section>
{{ if .Meta.draft }}
<h1 class="title">{{ index .Meta "title" }} <span class="draft">[draft]</span></h1>
{{ else }}
<h1 class="title">{{ index .Meta "title" }}</h1>
{{ end }}
<h2 class="subtitle">{{ index .Meta "subtitle" }}</h2>
{{ .Body }}
<p class="muted" align="center">Questions or comments?
Send an
<a href="mailto:[email protected]?Subject=Re: {{ index .Meta "title" }}">email</a>.
</article>
</main>
<footer>
{{ template "partials/footer.html" }}
</footer>
</body>
</html>