about summary refs log tree commit diff stats
path: root/layouts/partials/sidebar.html
diff options
context:
space:
mode:
authorAlan Pearce2018-06-17 19:23:18 +0200
committerAlan Pearce2018-06-17 19:23:18 +0200
commit743253f995d352f51fc7b7681948b20c79609060 (patch)
treee7992e69cff8aabd1f8c3e571a74d6ecbb130477 /layouts/partials/sidebar.html
parent61b24805867fc6d2aa67ede189d43faf86220ad4 (diff)
parent8cab2d27e2b7727e632d817dbdd41a97cc99af00 (diff)
downloadhyde-743253f995d352f51fc7b7681948b20c79609060.tar.lz
hyde-743253f995d352f51fc7b7681948b20c79609060.tar.zst
hyde-743253f995d352f51fc7b7681948b20c79609060.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'layouts/partials/sidebar.html')
-rw-r--r--layouts/partials/sidebar.html13
1 files changed, 7 insertions, 6 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index a076070..e6aadac 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -1,29 +1,30 @@
 		<aside class="sidebar container">
 			<header class="sidebar-about h-card vcard p-author">
-				{{ if (isset .Site.Author "image") }}
+				{{ 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 }}
+				{{ end -}}
 
-				{{ if eq .Title .Site.Title }}
+        {{ if eq .Title .Site.Title -}}
 				<h1 class="site-title u-name fn">{{ .Site.Title }}</h1>
-				{{ else }}
+				{{ else -}}
 				<span class="site-title u-name fn">{{ .Site.Title }}</span>
-				{{ end }}
+				{{ 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>
+			</header>
 
 				<nav>
 					<ul class="sidebar-nav">
+            <li><a href="{{ .Site.BaseURL }}">Home</a></li>
 						{{ range .Site.Menus.main }}
 						<li><a href="{{.URL}}"> {{ .Name }} </a></li>
 						{{end}}
 					</ul>
 				</nav>
-			</header>
 
 			<footer>
 				Licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.