<% if (site.categories.length) { %>
    <div class="widget-wrap">
        <h3 class="widget-title"><%= __('widget.categories') %></h3>
        <div class="widget">
            <%- list_categories() %>
        </div>
    </div>
<% } %>