Simply listing category terms for sidebar

I’m trying to list all taxonomy terms in partials/my sidebar.html.

I have tried this

    {{ range $name, $taxonomy := .Site.Taxonomies.tags }}
  • {{ $name }}
  • {{ end }}

and every possible example i found and they simply do not work.The output is nothing, no errors or anything.

I have tags and categories and the list works in posts and taxonomy pages (/categories & /tags) but gettting this to work in the sidebar seems amazingly hard…

How are you generating the sidebar? What is calling my sidebar.html?

It turned out to be a scope issue. Adding " . " solved it.

{{ partial “sidebar.html” . }}