aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/baseof.html
blob: 3516304de9d4180603958111bb22f671098fbcc5 (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
<!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: 720px;margin: 40px auto;padding: 0 20px;color:#2b2b2a;background: #f5f2eb;}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 }}</main>
    <footer>{{ partial "footer.html" . }}</footer>
    {{- partial "custom_body.html" . -}}
</body>
</html>