all repos — archie @ 3c737553b6bbc6eb8c72e6c79dbb1ccc52303d43

A minimal Hugo Theme

layouts/_default/single.html (view raw)

 1<!DOCTYPE html>
 2<html>
 3{{ partial "header.html" . }}
 4<body>
 5	<div class="content">
 6		{{ partial "head.html" . }}
 7<main>
 8<article>
 9		<div class="title">
10			<h1 class="title">{{ .Title }}</h1>
11			<div class="meta">Posted on {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
12		</div>
13		<div>
14			{{ if isset .Params "tldr" }}
15						<div class="tldr">
16							<strong>tl;dr:</strong>
17							{{ .Params.tldr }}
18  						</div>{{ end }}
19		</div>
20
21		<section class="body">
22			{{ .Content }}
23		</section>
24
25		<div class="post-tags">
26			{{ if ne .Type "page" }}
27				{{ if gt .Params.tags 0 }}
28					<nav class="nav tags">
29							<ul class="flat">
30								{{ range .Params.tags }}
31								<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
32								{{ end }}
33							</ul>
34					</nav>
35				{{ end }}
36			{{ end }}
37		</div>
38		{{- $.Scratch.Set "isDisqus" true -}}
39	
40	{{ partial "footer.html" . }}
41	</div>
42</body>
43</html>