diff options
author | Alan Pearce | 2014-07-12 11:28:47 +0100 |
---|---|---|
committer | Alan Pearce | 2014-07-12 11:28:47 +0100 |
commit | b06839295833e935dfd9719be222fc8bd87b7487 (patch) | |
tree | a999296dd9262e96e597430c85fc99b51cf09193 /layouts/partials/sidebar.html | |
parent | 59ae0f87d1158acd2eff84d022239608c4e3a453 (diff) | |
download | hyde-b06839295833e935dfd9719be222fc8bd87b7487.tar.lz hyde-b06839295833e935dfd9719be222fc8bd87b7487.tar.zst hyde-b06839295833e935dfd9719be222fc8bd87b7487.zip |
Add categories list to sidebar
Diffstat (limited to 'layouts/partials/sidebar.html')
-rw-r--r-- | layouts/partials/sidebar.html | 5 |
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}} |