diff options
-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}} |