blob: f6060c002acfbab888f0d14b956046280da4f128 (
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
|
<!DOCTYPE html>
<html lang="en">
<head>
{{ $title := print .Title " - " .Site.Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title | title }}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
{{ $css := resources.Match "stylesheets/*.css" | resources.Concat "style.css" | minify | fingerprint }}
<link rel="stylesheet" href="{{ $css.Permalink }}">
{{ with $.Resources.GetMatch "**.css*" }}
{{ $style := . | minify | fingerprint }}
<link type=text/css rel="stylesheet" href="{{ $style.Permalink }}">
{{ end }}
{{- block "head" . }}{{- end }}
</head>
<body>
<header>
<a id="homelink" href="/">{{ .Site.Title }}</a>
<span id="title">{{ .Title }}</span>
<div id="menu">
{{- range sort site.Menus.main "Weight" }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{- end }}
</div>
</header>
<main>
{{- block "main" . }}{{- end }}
</main>
<footer>
<hr>
{{ if .Site.Params.copyright.include }}
<span id="copyright">© {{ time.Now.Year }} {{ .Site.Params.copyright.name }} – {{ .Site.Params.copyright.type }}</span>
{{ end }}
{{ partial "theme-copyright.html" . }}
</footer>
</body>
</html>
|