summaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
blob: 1714af41f70dce79aa40bb3a95ae32f5e2456f47 (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
<!DOCTYPE html>
<html>
	<head>
		<title>{{- block "title" . }}{{ .Site.Title }}
		{{- if .Title }} - {{ .Title }}{{ end }}
		{{- end }}</title>
		{{- with .OutputFormats.Get "rss" }}
		<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ site.Title }}">
		{{- end }}
		{{- block "opengraph" . }}
		{{- if .Title }}<meta property="og:title" content="{{ .Title }}">{{ end }}
		{{- if .Summary }}<meta property="og:description" content="{{ .Summary }}">{{ end }}
		{{- end }}
	</head>
	<body>
		{{- block "header" . }}
		{{- if .Title }}
			<header>
				<h1>{{ .Title }}</h1>
			{{- if .PublishDate }}
				<p><small>{{ .PublishDate | time.Format ":date_medium" }}</small></p>
			{{- end }}
			</header>
		{{- end }}
		{{- end }}

		{{- block "main" . }}
			{{- .Content }}
		{{- end }}

		{{- with .Parent }}
		<nav>
			<p>Go back to <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>.</p>
		</nav>
		{{- end }}
	</body>
</html>