blob: 43ee9f6e5af11b5e5447a224a39779c7de5bdc89 (
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
|
<!DOCTYPE html>
<html lang="{{ default "en" .Site.LanguageCode }}">
<head>
<meta charset="utf-8" />
<title>{{ if and (.Title) (not (eq .Title .Site.Title)) }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
<meta name="author" content="{{ .Site.Author.name }}" />
{{ if .Site.Params.opengraph }}{{ template "_internal/opengraph.html" . }}{{ end -}}
{{ if .Site.Params.schema }}{{ template "_internal/schema.html" . }}{{ end -}}
{{ if .Site.Params.twitter_cards }}{{ template "_internal/twitter_cards.html" . }}{{ end -}}
{{ hugo.Generator }}
{{- with .Site.Home.OutputFormats.Get "RSS" }}
{{- $rssLink := .RelPermalink }}
<link href="{{ $rssLink }}" rel="{{ .Rel }}" type="application/rss+xml" title="{{ $.Site.Title }} Feed" />
{{- with $.Page.OutputFormats.Get "RSS" }}
{{- if ne $rssLink .RelPermalink }}
<link href="{{ .RelPermalink }}" rel="{{ .Rel }}" type="application/rss+xml" title="{{ $.Site.Title }} {{ $.Title }} Feed" />
{{- end }}
{{- end }}
{{- end }}
{{- with .Site.Params.favicon | default "favicon.ico" }}
{{- if resources.Get . }}
{{- $favicon := resources.Get . | resources.Fingerprint }}
<link rel="shortcut icon" href="{{ $favicon.RelPermalink }}" type="{{ $favicon.MediaType }}" />
{{- else if fileExists (path.Join "static" .) }}
{{- $favtype := cond (eq (path.Ext .) ".png") "image/png" "image/x-icon" }}
<link rel="shortcut icon" href="{{ $.Site.BaseURL }}{{ . }}" type="{{ $favtype }}" />
{{- end }}
{{- end }}
{{- $style := resources.Get "style.css" | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
{{- with .Site.Params.css }}
{{- if resources.Get . }}
{{- $styleCustom := resources.Get . | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $styleCustom.RelPermalink }}" />
{{- else if fileExists (path.Join "static" .) }}
<link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}" />
{{- end }}
{{- end }}
{{- $script := resources.Get "script.js" | resources.Fingerprint }}
<script defer src="{{ $script.RelPermalink }}"></script>
</head>
<body>
<div class="pure-g">
<div class="pure-u-1-24 pure-u-md-5-24"></div>
<div class="pure-u-22-24 pure-u-md-14-24">
{{ partial "navbar.html" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer.html" . }}
</div>
<div class="pure-u-1-24 pure-u-md-5-24"></div>
</div>
</body>
</html>
|