aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/taxonomy.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-08-13 19:58:56 -0400
committertdro <tdro@noreply.example.com>2022-08-13 19:58:56 -0400
commit8595c1325bd68fd0c17334c78b85b0fde55986d4 (patch)
tree94ac9ebdd086fce355c40f0ee73ef193fa618083 /themes/default/layouts/_default/taxonomy.html
parente37c7a24880d4a0ba424e24014d69c5c5d0cf11d (diff)
downloadcanory-8595c1325bd68fd0c17334c78b85b0fde55986d4.tar.gz
canory-8595c1325bd68fd0c17334c78b85b0fde55986d4.tar.bz2
canory-8595c1325bd68fd0c17334c78b85b0fde55986d4.zip
themes/default/layouts/_default/taxonomy: Limit to first 3 tags
Diffstat (limited to 'themes/default/layouts/_default/taxonomy.html')
-rw-r--r--themes/default/layouts/_default/taxonomy.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/layouts/_default/taxonomy.html b/themes/default/layouts/_default/taxonomy.html
index 011acac..4ba63dc 100644
--- a/themes/default/layouts/_default/taxonomy.html
+++ b/themes/default/layouts/_default/taxonomy.html
@@ -10,7 +10,7 @@
{{ if eq .Title "Tags" }}
- {{ partial "navigator-middle.html"
+ {{- partial "navigator-middle.html"
(dict
"Title" "Tags"
"Subtitle" (partial "count-tags.html" .)
@@ -20,7 +20,7 @@
"Id" "back"
"Context" .
)
- }}
+ -}}
{{- $page := 1 -}}
{{- $count := 0 -}}
@@ -30,7 +30,7 @@
<item-list>
<h1><a href="{{ .Site.BaseURL }}/tags/{{ $title }}">#{{ .Title }}</a></h1>
<ul>
- {{ range .Pages }}
+ {{ range first 3 .Pages }}
{{- $count = add $count 1 -}}
<li>
<a