diff options
Diffstat (limited to 'layouts/partials/categories.html')
-rw-r--r-- | layouts/partials/categories.html | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/layouts/partials/categories.html b/layouts/partials/categories.html index 933b631..909a281 100644 --- a/layouts/partials/categories.html +++ b/layouts/partials/categories.html @@ -1,10 +1,5 @@ -{{ $taxonomy := "categories" }} -{{ with .Param $taxonomy }} -{{ range $index, $tag := . }} -{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}} +{{range first 10 ($.Site.GetPage "taxonomyTerm" "categories").Pages }} <li> - <a href="{{ .Permalink }}">{{ $tag | urlize }}</a> + <a href="{{ .Permalink }}">{{.Title}}</a> </li> -{{- end -}} -{{- end -}} {{ end }}
\ No newline at end of file |