Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/maxlefou/hugo.386.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/categories.html')
-rw-r--r--layouts/partials/categories.html9
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