diff options
author | Austin Gebauer <agebauer@hashicorp.com> | 2020-04-05 08:02:54 +0300 |
---|---|---|
committer | Austin Gebauer <agebauer@hashicorp.com> | 2020-04-05 08:02:54 +0300 |
commit | 48d793bc2d1312c4dbd87812f7d18dc3742b9e82 (patch) | |
tree | 8f0cc9b1fe867b318c0ad91a85bda28f5173acdf | |
parent | 254232f5ab21291eb1e0fe655ab26e681f09411d (diff) |
style: sort categories
-rw-r--r-- | layouts/partials/category-posts.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/category-posts.html b/layouts/partials/category-posts.html index f0447da..c89e970 100644 --- a/layouts/partials/category-posts.html +++ b/layouts/partials/category-posts.html @@ -1,7 +1,7 @@ <div class="pl-sm-4 ml-sm-5 pt-2"> <div class="row"> <div class="col-12"> - {{ $recent := 5 }} + {{ $recent := 7 }} {{ if .Site.Params.recent_posts }} {{ $recent = .Site.Params.recent_posts }} {{ end }} @@ -18,7 +18,7 @@ </ul> </div> - {{ range .Site.Taxonomies.categories.ByCount }} + {{ range $key, $taxonomy := .Site.Taxonomies.categories.Alphabetical }} <div class="pb-3"> <h5> <span class="badge category text-capitalize"> @@ -26,7 +26,7 @@ </span> </h5> <ul class="list-unstyled"> - {{ range .Pages }} + {{ range $taxonomy.Pages }} <li> {{ .Date.Format "Jan 2 2006" }} <a href="{{ .Permalink }}">{{ .Title }}</a> |