aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html56
1 files changed, 23 insertions, 33 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 54fa756..3516304 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,36 +1,26 @@
<!doctype html>
-<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
- <head>
- <!-- <link rel="stylesheet" href="/css/style.css" /> -->
- <link rel="stylesheet" href="/css/style.css" />
- <meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett" />
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- {{- partial "favicon.html" . -}}
- <title>{{ .Title }}</title>
+<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>
- {{- partial "seo_tags.html" . -}}
- <meta name="referrer" content="no-referrer-when-downgrade" />
- <link rel="alternate" type="application/rss+xml" href="/atom.xml" title="{{ .Site.Title }}">
-
-
- {{ with .OutputFormats.Get "rss" -}} {{ printf `
- <link rel="%s" type="%s" href="%s" title="%s" />
- ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}}
-
- <!-- A partial to be overwritten by the user.
- Simply place a custom_head.html into
- your local /layouts/partials-directory -->
- {{- partial "custom_head.html" . -}}
- </head>
-
- <body>
- <main>{{- block "main" . }}{{- end }}</main>
- <footer>{{- partial "footer.html" . -}}</footer>
-
- <!-- A partial to be overwritten by the user.
- Simply place a custom_body.html into
- your local /layouts/partials-directory -->
- {{- partial "custom_body.html" . -}}
- </body>
+<body>
+ <main>{{ block "main" . }}{{ end }}</main>
+ <footer>{{ partial "footer.html" . }}</footer>
+ {{- partial "custom_body.html" . -}}
+</body>
</html>