aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/baseof.html
blob: 7736f27b35c8829d2ff7dea099863e0a10dcb6f5 (plain) (blame)
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
39
40
41
42
43
44
45
46
47
<!doctype html>
<html lang={{ or .Site.LanguageCode "zh-cn" }}>

<head>
	<meta charset=utf-8>
	<meta name=viewport content="width=device-width,initial-scale=1">
	<meta http-equiv=X-Clacks-Overhead content="GNU Terry Pratchett">
	<meta name=referrer content="no-referrer-when-downgrade">
	<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ printf "%s | %s" .Title .Site.Title }}{{ end }}</title>
	<style>
		body {
			font-family: monospace;
			line-height: 1.7;
			max-width: 760px;
			margin: 40px auto;
			padding: 0 20px;
		}

		pre {
			border: 1px dashed #555;
			padding: 12px;
			overflow-x: auto;
		}

		img {
			max-width: 100%;
		}
	</style>
	{{- partial "favicon.html" . -}}
	{{- partial "seo_tags.html" . -}}

	<link rel=alternate type=application/rss+xml href=/atom.xml title={{ .Site.Title }}>
	{{- with .OutputFormats.Get "rss" -}}
	<link rel={{ .Rel }} type={{ .MediaType.Type }} href={{ .Permalink }} title={{ $.Site.Title }}>
	{{- end -}}

	{{- partial "custom_head.html" . -}}
</head>

<body>
  <main>{{ block "main" . }}{{ end }}
	<footer>{{ partial "footer.html" . }}</footer>
  </main>
	{{- partial "custom_body.html" . -}}
</body>

</html>