aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-09-27 01:13:28 -0400
committertdro <tdro@noreply.example.com>2022-09-27 01:13:28 -0400
commit61bbcdf947faaf812dd54fb307289eb0d3679b47 (patch)
tree85f94f4e4845796ae90a069548c46f9d8e4f6978 /themes/default/layouts/_default
parent49a350674752a4a29829e0c0d25b31c3f13b8385 (diff)
downloadcanory-61bbcdf947faaf812dd54fb307289eb0d3679b47.tar.gz
canory-61bbcdf947faaf812dd54fb307289eb0d3679b47.tar.bz2
canory-61bbcdf947faaf812dd54fb307289eb0d3679b47.zip
themes/default/layouts/_default/taxonomy: Format
Diffstat (limited to 'themes/default/layouts/_default')
-rw-r--r--themes/default/layouts/_default/taxonomy.html36
1 files changed, 22 insertions, 14 deletions
diff --git a/themes/default/layouts/_default/taxonomy.html b/themes/default/layouts/_default/taxonomy.html
index 4ba63dc..f8048d0 100644
--- a/themes/default/layouts/_default/taxonomy.html
+++ b/themes/default/layouts/_default/taxonomy.html
@@ -28,25 +28,33 @@
{{ range .Paginator.Pages }}
{{ $title := lower .Title }}
<item-list>
- <h1><a href="{{ .Site.BaseURL }}/tags/{{ $title }}">#{{ .Title }}</a></h1>
+ <h1>
+ <a href="{{ .Site.BaseURL }}/tags/{{ $title }}">#{{ .Title }}</a>
+ </h1>
+
<ul>
{{ range first 3 .Pages }}
- {{- $count = add $count 1 -}}
- <li>
- <a
- title="{{ partial "meta-title.html" . }}"
- href="{{ .Site.BaseURL }}/tags/{{ $title }}/{{ if gt $page 1 }}page/{{ $page }}/{{ end }}#{{ partial "card-id.html" . }}">
- <span><code>{{ .Date.Format "02 Jan 2006" }}</code></span>
- <span>{{ partial "meta-title.html" . }}</span>
- <span>@{{ partial "author-user.html" . }}</span>
- </a>
- </li>
- {{ if eq (mod $count $.Paginator.PageSize) 0 }}
- {{ $page = add $page 1 }}
- {{- end -}}
+ {{- $count = add $count 1 -}}
+ <li>
+ <a
+ title="{{ partial "meta-title.html" . }}"
+ href="{{ .Site.BaseURL }}/tags/{{ $title }}/{{ if gt $page 1 }}page/{{ $page }}/{{ end }}#{{ partial "card-id.html" . }}"
+ >
+ <span>
+ <code>{{ .Date.Format "02 Jan 2006" }}</code>
+ </span>
+ <span>{{ partial "meta-title.html" . }}</span>
+ <span>@{{ partial "author-user.html" . }}</span>
+ </a>
+ </li>
+ {{ if eq (mod $count $.Paginator.PageSize) 0 }}
+ {{ $page = add $page 1 }}
+ {{- end -}}
{{- end -}}
+
{{- $page = 1 -}}
{{- $count = 0 -}}
+
</ul>
</item-list>
{{ end }}