Welcome to mirror list, hosted at ThFree Co, Russian Federation.

single.html « _default « layouts - github.com/EmielH/tale-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fac4e5822a71c3c6f437ede7a2927522e796c8ea (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
{{ partial "header.html" . }}

<main>
	<div class="post">
		<div class="post-info">
		<span>Written by</span>
		{{ if .Params.Author }}
			{{ .Params.Author }}
		{{ else }}
			{{ .Site.Params.Author }}
		{{ end }}

		{{ if .PublishDate }}
			<br>
			<span>on&nbsp;</span><time datetime="{{ .PublishDate }}">{{ .PublishDate.Format "January 2, 2006" }}</time>
		{{ end }}
		</div>

		<h1 class="post-title">{{ .Title }}</h1>
		<div class="post-line"></div>

		{{ .Content }}

	</div>

	<div class="pagination">
		{{ if .Next }}
		<a href="{{ .Next.URL }}" class="left arrow">&#8592;</a>
		{{ end }}
		{{ if .Prev }}
		<a href="{{ .Prev.URL }}" class="right arrow">&#8594;</a>
		{{ end }}

		<a href="#" class="top">Top</a>
	</div>
</main>

{{ partial "footer.html" . }}