blob: f2a543b401511f799266ee7b502d1d6fc47376a0 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- author -->
<meta name="author" content="{{ .Site.Author.name }}">
<!-- description -->
{{ if .Description }}
<meta name="description" content="{{ .Description }}">
{{ else if and .IsPage .Summary }}
<meta name="description" content="{{ .Summary }}">
{{ else }}
<meta name="description" content="{{ .Site.Params.description }}">
{{ end }}
<!-- favicon -->
<link rel="icon" href="{{ .Site.Params.favicon }}">
<!-- keywords -->
{{ if .Keywords }}
<meta name="keywords" content="{{ range $key, $value := .Keywords }} {{ $value }} {{ end }}">
{{ else }}
<meta name="keywords" content="{{ range $key, $value := .Site.Params.keywords }} {{ $value }} {{ end }}">
{{ end }}
<!-- mathjax -->
{{ if .Site.Params.enableMathjax }}
{{ partial "mathjax.html" . }}
{{ end }}
<!-- permalink -->
<link rel="canonical" href="{{ .Permalink }}">
<!-- rss -->
{{ range .AlternativeOutputFormats -}}
{{ printf `
<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
<!-- style -->
<link media="screen" rel="stylesheet" href='{{ "css/common.css" | absURL }}'>
<link media="screen" rel="stylesheet" href='{{ "css/content.css" | absURL }}'>
<link media="screen" rel="stylesheet" href='{{ "css/highlight.css" | absURL }}'>
<!-- title -->
{{ if .IsHome }}
<title>{{ .Site.Title }}</title>
{{ else }}
<title>{{ .Title }} - {{ .Site.Title }}</title>
{{ end }}
<!-- twitter -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{ .Title }}" />
<meta name="twitter:description" content="{{ .Summary }}" />
{{ block "head" . }}{{ end }}
</head>
<body>
<div id="wrapper">
{{ partial "header.html" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer.html" . }}
</div>
<!-- custom css -->
{{ range .Site.Params.customCSS }}
<link media="screen" rel="stylesheet" href="{{ . | absURL }}" />
{{ end }}
<!-- google analytics -->
{{ template "_internal/google_analytics_async.html" . }}
</body>
</html>
|