2020-04-08 21:44:29 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
{{ partial "header.html" . }}
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="container wrapper tags">
|
|
|
|
{{ partial "head.html" . }}
|
|
|
|
|
|
|
|
<h1 class="page-title">All tags</h1>
|
|
|
|
|
|
|
|
{{ $biggest := 1 }}
|
|
|
|
{{ $smallest := 1 }}
|
|
|
|
{{ $max := 3 }}
|
|
|
|
{{ $min := 1 }}
|
|
|
|
{{ $size := $min }}
|
|
|
|
|
|
|
|
{{ $data := .Data }}
|
|
|
|
<div class="tag-cloud">
|
2020-04-16 10:20:38 +03:00
|
|
|
<ul>
|
2020-04-08 21:44:29 +03:00
|
|
|
{{ range $key, $value := .Data.Terms.ByCount }}
|
|
|
|
{{ $size := (add (mul (div $value.Count $biggest) (sub $max $min)) $min) }}
|
|
|
|
{{ $size := (cond (eq $biggest $smallest) $min $size) }}
|
2020-04-16 10:20:38 +03:00
|
|
|
<li><a style="font-size: {{ $size }}rem;" href="{{ $.Site.LanguagePrefix | absURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}/">{{ $value.Name }}</a></li>
|
2020-04-08 21:44:29 +03:00
|
|
|
{{ end }}
|
2020-04-16 10:20:38 +03:00
|
|
|
</ul>
|
2020-04-08 21:44:29 +03:00
|
|
|
</div>
|
2020-04-16 10:20:38 +03:00
|
|
|
{{ partial "footer.html" . }}
|
2020-04-12 18:01:09 +03:00
|
|
|
</div>
|
2020-04-08 21:44:29 +03:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|