blob: 2a6449074b835c42a6734362915cceb001bc3cc5 (
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
|
{{ if .Site.Author.gravataremail }}
{{ .Scratch.Set "authorPicture" (printf "//www.gravatar.com/avatar/%s" (urlize (md5 (.Site.Author.gravataremail )))) }}
{{ else if .Site.Author.picture }}
{{ .Scratch.Set "authorPicture" (absURL .Site.Author.picture) }}
{{ end }}
<nav id="sidebar" class="w5-ns w-100 bg-gray vh-100" style="background-image:url('{{ .Site.Params.coverImage | absURL }}');">
<a class="bg-black white link dim db pa3 tc pointer" onclick="w3_close()">
Close ×
</a>
<div class="tc pv4">
<a href="/#about" class="white link">
{{ with ($.Scratch.Get "authorPicture") }}
<img class="br-100" src="{{ . }}{{ if in . "//www.gravatar.com/avatar/" }}?s=110{{ end }}"/>
{{ end }}
<h3 class="f3">
{{ .Site.Author.name }}
</h3>
</a>
</div>
<ul class="list">
{{ range .Site.Menus.main }}
<li class="pv2">
<a class="link white db grow" href="{{ .URL | relLangURL }}" title="{{ .Title }}">
{{ .Pre }} {{ .Name }}</a>
</li>
{{ end }}
</ul>
<ul class="list">
{{ range .Site.Menus.links }}
<li class="pv2">
<a class="link white db grow" href="{{ .URL | relLangURL }}" title="{{ .Title }}">
{{ .Pre }} {{ .Name }}</a>
</li>
{{ end }}
</ul>
</nav>
<nav class="dt w-100 border-box pa2">
<a class="dtc dib v-mid dim " onclick="w3_open()">
<i class="fa fa-lg fa-bars black"></i>
</a>
<a href="{{ "/" | relLangURL }}" class="dtc v-mid link dim tc">
<div class="f4 dib black-50">{{ .Site.Title }}</div>
</a>
{{ with ($.Scratch.Get "authorPicture") }}
<a href="/#about" class="dtc dim tr">
<img class="dib v-mid dib w2 h2 br-100" src="{{ . }}{{ if in . "//www.gravatar.com/avatar/" }}?s=90{{ end }}"/>
</a>
{{ end }}
</nav>
|