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-10-12 14:59:49 -04:00
|
|
|
<a class="character" href="/art/characters/{{ urlize $year }}"><img class="gallery-img" width=256 height=256 src="{{ $.Site.Params.image_host }}/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-10-03 21:50:12 -04:00
|
|
|
{{ $years := (where .Site.RegularPages "Section" "=" "art").GroupByDate "2006" }}
|
|
|
|
{{ $year_sorted := slice }}
|
|
|
|
{{ range $years }}
|
2024-09-30 17:40:46 -04:00
|
|
|
{{ $year := .Key }}
|
|
|
|
{{ $num := len (where .Pages "Params.guest" "=" false) }}
|
2024-10-03 21:50:12 -04:00
|
|
|
{{ $year_sorted = $year_sorted | append (dict "year" $year "num" $num) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ range (sort $year_sorted "num" "desc") }}
|
|
|
|
<li><a href="/art/{{ .year }}">{{ .year }}</a> ({{ .num }} artworks)</li>
|
2023-03-28 20:35:34 -04:00
|
|
|
{{ end }}
|
|
|
|
</ol>
|
|
|
|
{{ end }}
|