mirror of
https://github.com/fruworg/themu.git
synced 2024-11-16 15:07:17 +03:00
32 lines
767 B
HTML
32 lines
767 B
HTML
<!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">
|
|
<ul>
|
|
{{ 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 style="font-size: {{ $size }}rem;" href="{{ $.Site.LanguagePrefix | absURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}/">{{ $value.Name }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ partial "footer.html" . }}
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|