-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
44 lines (36 loc) · 1.45 KB
/
index.html
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
<!DOCTYPE html>
<html id="html" lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="viewport" content="width=device-width"/>
<title>{{ .Site.Title }}</title>
<meta name="description" content="{{ with .Site.Params.description }}{{ . }}{{ end }}">
<meta name="author" content="{{ with .Site.Params.author }}{{ . }}{{ end }}">
{{ .Hugo.Generator }}
{{ partial "style.html" . }}
</head>
<body>
<section id="Menu">
<header>
<h1>{{ with .Site.Params.headerTitle }}{{ . | markdownify }}{{ else }}{{ .Site.Title }}{{ end }}</h1>
<p>{{ with .Site.Params.headerDescription }}{{ . | markdownify }}{{ else }}{{ .Site.Params.description }}{{ end }}</p>
</header>
<nav>
{{ range .Site.Menus.top }}
<a href="{{.URL}}" target="blank">{{ .Name }}</a>
{{ end }}
</nav>
<nav>
{{ range .Data.Pages.ByWeight }}
<a href="#{{ .Params.anchor }}">{{ .Title }}</a>
{{ end }}
</nav>
</section>
{{ range .Data.Pages.ByWeight }}
<section id="{{ .Params.anchor }}">
<h1><a href="#{{ .Params.anchor }}">{{ .Title }}</a><small><a href="#html">{{ with .Site.Params.bttButton }}{{ . | markdownify }}{{ else }}Back to Top{{ end }}</a></small></h1>
{{ .Content | markdownify }}
</section>
{{ end }}
</body>
</html>