hugo-tranquilpeak-theme icon indicating copy to clipboard operation
hugo-tranquilpeak-theme copied to clipboard

not showing in main cat if showed in sub cat

Open Shadowsong27 opened this issue 5 years ago • 2 comments

This PR addresses the duplicated display in category page.

If configured to hierarchical categories, post will be present in both the main category and the sub-category.

This if statement ensures a post will only show in main category list if it does not have any sub category declared.

Shadowsong27 avatar Jun 12 '19 17:06 Shadowsong27

Is not really a bug, is just the behavior from original/upstream theme (https://louisbarranqueiro.github.io/hexo-theme-tranquilpeak/all-categories/)

But we could add param to toggle the behavior.

kakawait avatar Jul 03 '19 07:07 kakawait

@kakawait

True, hence the branch feature/*. Makes more sense to hide them from my perspective.

Thanks.

Shadowsong27 avatar Jul 09 '19 09:07 Shadowsong27