blob: 252d465ab74707cfec56131e326e8bbc911b69a9 (
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
|
{{ partial "header.html" . }}
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<div class="logo">
<a href="/"><span class="icon fa-{{ .Params.Icon | default "gem" }}"></span></a>
</div>
<div class="content">
<div class="inner">
<h1>{{ .Title | default "Title" }}</h1>
{{ if .Params.description }}
<p>
{{ .Params.description }}
</p>
{{ end }}
</div>
</div>
<nav>
<ul>
{{ range .Pages.ByDate }}
{{if .Title }}
{{if .Content}}
<li>
<a href="#{{ cond (in (.Title|urlize) "%") (.Title | base64Encode) (.Title) | urlize }}">{{ .Title }}</a>
</li>
{{ else }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
{{ end }}
</ul>
</nav>
</header>
<!-- Main -->
<div id="main">
{{ range .Pages }}
{{if .Title }}
{{if .Content }}
<article id="{{ cond (in (.Title|urlize) "%") (.Title | base64Encode) (.Title) | urlize }}">
<h2 class="major">{{ .Title }}</h2>
<span class="image main"><img src="{{ .Params.image }}" alt="" /></span>
{{ .Content }}
</article>
{{ end }}
{{ end }}
{{ end }}
</div>
{{ partial "design.html" .}}
</div>
<!-- BG -->
<div id="bg"></div>
</body>
{{ partial "footer.html" .}}
|