diff options
-rw-r--r-- | layouts/partials/homepage.html | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/layouts/partials/homepage.html b/layouts/partials/homepage.html index ced99ad..69b7090 100644 --- a/layouts/partials/homepage.html +++ b/layouts/partials/homepage.html @@ -11,10 +11,12 @@ {{ end }} </div> +{{ with .Site.Taxonomies.categories }} + <h1 class="headline">Categories</h1> <section class="categories"> - {{ range $name, $value := .Site.Taxonomies.categories }} + {{ range $name, $value := . }} <h2 class="category"> <a href="{{ $baseurl }}categories/{{ $name | urlize }}">{{ title $name }}</a> <small>({{ .Count }})</small> @@ -22,10 +24,14 @@ {{ end }} </section> +{{ end }} + +{{ with .Site.Taxonomies.tags }} + <h1 class="headline">Tags</h1> <section class="tags"> - {{ range $name, $value := .Site.Taxonomies.tags }} + {{ range $name, $value := . }} <span class="tag"> <a href="{{ $baseurl }}tags/{{ $name | urlize }}">{{ $name }}</a> <small>({{ .Count }})</small> @@ -33,4 +39,6 @@ {{ end }} </section> +{{ end }} + </main> |