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