mirror of
https://github.com/zaaarf/friendenstein.git
synced 2024-11-14 19:49:21 +01:00
19 lines
536 B
HTML
19 lines
536 B
HTML
{{ define "main" }}
|
|
<h1>All tags</h1>
|
|
|
|
{{ $biggest := 1 }}
|
|
{{ $smallest := 1 }}
|
|
{{ $max := 3 }}
|
|
{{ $min := 1 }}
|
|
{{ $size := $min }}
|
|
|
|
{{ $data := .Data }}
|
|
<ul class="tags moreContainer">
|
|
{{ range $key, $value := .Data.Terms.ByCount }}
|
|
{{ $size := (add (mul (div $value.Count $biggest) (sub $max $min)) $min) }}
|
|
{{ $size := (cond (eq $biggest $smallest) $min $size) }}
|
|
<li><a href="{{ $.Site.LanguagePrefix | absURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}/">{{ $value.Name }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|