about summary refs log tree commit diff stats
path: root/layouts/partials
diff options
context:
space:
mode:
authorAlan Pearce2014-07-12 11:28:47 +0100
committerAlan Pearce2014-07-12 11:28:47 +0100
commitb06839295833e935dfd9719be222fc8bd87b7487 (patch)
treea999296dd9262e96e597430c85fc99b51cf09193 /layouts/partials
parent59ae0f87d1158acd2eff84d022239608c4e3a453 (diff)
downloadhyde-b06839295833e935dfd9719be222fc8bd87b7487.tar.lz
hyde-b06839295833e935dfd9719be222fc8bd87b7487.tar.zst
hyde-b06839295833e935dfd9719be222fc8bd87b7487.zip
Add categories list to sidebar
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/sidebar.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 9a68142..d8acf04 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -10,6 +10,11 @@
 				<nav>
 					<ul class="sidebar-nav">
 						<li><a href="/">Home</a> </li>
+						{{ range $key, $value := .Site.Indexes.categories }}
+						<li>
+							<a href="/categories/{{ $key | urlize }}">{{ $key | title }}</a>
+						</li>
+						{{ end }}
 						{{ range .Site.Menus.main }}
 						<li><a href="{{.Url}}"> {{ .Name }} </a></li>
 						{{end}}