redstrate.com/themes/red/layouts/_default/art-stats.html

29 lines
1 KiB
HTML
Raw Normal View History

2024-09-30 17:40:46 -04:00
{{/* Page layout used for art statistics page. */}}
2023-03-28 20:35:34 -04:00
{{ define "main" }}
<h2>{{ .Title }}</h2>
<hr>
2024-08-03 10:23:42 -04:00
{{ $.Scratch.Set "header-type" "h3" }}
{{ $.Scratch.Set "header-name" "Most Drawn Characters" }}
{{ partial "fake-heading.html" $ }}
2023-03-28 20:35:34 -04:00
<ol>
2024-09-30 17:40:46 -04:00
{{ range first 10 (index site.Taxonomies "characters").ByCount }}
{{ $year := .Page.Title }}
{{ $num := .Count }}
2024-08-03 10:23:42 -04:00
<a class="character" href="/art/characters/{{ urlize $year }}"><img class="gallery-img" width=256 height=256 src="https://images.redstrate.com/chars/{{ urlize $year }}.jpg"/><span>{{ $year }}<br>({{ $num }} artworks)</span></a>
2023-03-28 20:35:34 -04:00
{{ end }}
</ol>
2024-08-03 10:23:42 -04:00
{{ $.Scratch.Set "header-name" "# of Artworks by Year" }}
{{ partial "fake-heading.html" $ }}
2023-03-28 20:35:34 -04:00
<ol>
2024-09-30 17:40:46 -04:00
{{ range (where .Site.RegularPages "Section" "=" "art").GroupByDate "2006" }}
{{ $year := .Key }}
{{ $num := len (where .Pages "Params.guest" "=" false) }}
2024-08-03 10:23:42 -04:00
<li><a href="/art/{{ $year }}">{{ $year }}</a> ({{ $num }} artworks)</li>
2023-03-28 20:35:34 -04:00
{{ end }}
</ol>
{{ end }}