{{define "Koma/categories.html"}}
<!DOCTYPE html>
<html>
<head>
    {{template "head/head" .}}
    {{template "head/3rdstatistic" .}}
</head>
<body>
{{template "Koma/side" .}}
<div class="main">
    <article class="article__item">
        <header class="article__header">
            <h2>
                <span id="categoriesCount">0</span> <span class="ft-fade ft-13">{{.I18n.Categories2}}</span>
            </h2>
        </header>
        <div class="page__content">
            {{if eq (len .Categories) 0}}
            <div class="ft-center">
                <br> <br>
                {{.I18n.NoData}}
                <br> <br> <br> <br>
            </div>
            {{end}}
            <ul>
            {{range .Categories}}
            <li class="categories__item">
               <h3>
                   <a href="{{.URL}}" class="categories__header">
                   {{.Title}}
                       <span class="ft-13 ft-gray"><!--{{.ArticleCount}} {{$.I18n.Article2}}--></span>
                   </a>
               </h3>
                <div class="ft-gray ft-13">{{.Description}}</div>
                <div>
                    {{range .Tags}}
                    <a href="{{.URL}}" class="tag">{{.Title}}</a>
                    {{end}}
                </div>
            </li>
            {{end}}
            </ul>
        </div>
    </article>

    {{template "Koma/footer" .}}
</div>
<script>
  increase({{len .Categories}}, 1000, 'categoriesCount', 0)
</script>
</body>
</html>
{{end}}