When going to /categories/categoryname, the title says "All posts". From my testing, it looks like archive.ejs is the used layout for categories and not tag.ejs. So migrating the title manipulation here as well fixed the issue.
<%
var title = '';
if (page.category) title = page.category;
if (page.archive){
if (page.year) title = page.year + (page.month ? '/' + page.month : '');
else title = "Archives";
}
%>
<% if(title && is_category()) { %>
<h5 class="">Category โ <%- title %></h5>
<% } else if (title) { %>
<h5 class=""><%- title %></h5>
<% } else { %>
<h5>All Posts</h5>
<% } %>
<%
var title = '';
if (page.tag) title = page.tag;
%>
<% if(title) { %>
<h5 class="">Posts Related to โ <%- title %></h5>
<% } %>
} else if (is_category()){
title = 'Category - ' + page.category;
}
These fixed categories on my side ๐ .
I also to take the opportunity to say big thanks for this theme, I am learning a lot by this one, and it is much more digest than the default theme! The minimalistic css and ejs makes it very easy to customize it to my needs. The thumbnail feature is also amazing.