all repos — archie @ dd1c9af419865b0a2048dbdc29b535d6448f9466

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="tags">
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		
39	
40	{{ partial "footer.html" . }}
41	</div>
42</body>
43</html>