templates/text.html (view raw)
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 |
<!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>
{{ template "partials/nav.html" }}
</div>
<article>
<section class="dark:text-dark-gray text-gray lowercase">
{{ $dateStr := index .Meta "date" }}
{{ $date := parsedate $dateStr }}
{{ $date.Format "02 Jan, 2006" }}
</section>
<section>
<h1 class="-mb-4">{{ index .Meta "title" }} {{ if eq .Meta.draft "true" }}
<span class="text-base text-red-400">[draft]</span>{{ end }}
</h1>
<h2 class="text-gray dark:text-dark-gray">{{ index .Meta "subtitle" }}</h2>
<div class="mt-12">
{{ .Body }}
</div>
</section>
</article>
</main>
<footer>
{{ template "partials/footer.html" }}
</footer>
</body>
</html>
|