about summary refs log tree commit diff stats
path: root/layouts/partials/sidebar.html
blob: 53d41cfe7cb6a3f4e772ded512bb224b8df168dd (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
		<aside class="sidebar container">
			<header class="sidebar-about h-card vcard p-author">
				{{ if (isset .Site.Author "image") }}
				<a class="u-url u-uid" rel="me" href="{{ .Site.BaseURL }}">
					<img class="u-photo" src="{{ .Site.Author.image }}" width=128 height=128 />
				</a>
				{{ end }}

				{{ if eq .Title .Site.Title }}
				<h1 class="site-title u-name fn">{{ .Site.Title }}</h1>
				{{ else }}
				<span class="site-title u-name fn">{{ .Site.Title }}</span>
				{{ end }}

				<p class="lead p-note">
					{{ with .Site.Params.Description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.{{end}}
				</p>

				<nav>
					<ul class="sidebar-nav">
						{{ range .Site.Menus.main }}
						<li><a href="{{.URL}}"> {{ .Name }} </a></li>
						{{end}}
					</ul>
				</nav>

				<aside class="contact">
					<h3 class="contact-head">Contact me</h3>
					<ul class="contact-list">
						{{ range .Site.Menus.contact }}
						<li>
							{{ if hasPrefix .URL "mailto:" }}
							<a href="{{ .URL }}" class="u-email email" rel="me">{{ .Name }}</a>
							{{ else }}
							<a href="{{ .URL }}" class="u-url url" rel="me">{{ .Name }}</a>
						{{ end }}
						</li>
						{{ end }}
					</ul>
				</aside>
			</header>

			<footer>
				Licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
			</footer>
		</aside>