Tips and tricks for building a theme in Hugo

{{ range $name, $items := .Site.Taxonomies.categories }}
<li><a href="{{ $.Site.BaseURL }}categories/{{ $name | urlize | lower }}">{{ $name }} &nbsp;<span>({{ len $items }})</span></a></li>
{{ end }}

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jeff McMorris

Jeff McMorris

More from Medium

Aleo — Top project 2022!

Apple and Google Apps Search Ads Secrets — Make Money From Your Apps or Products

To Read List: Sinatra React Project

Refactoring UI: an essential guide