I am now trying to install Version 8.0.2 of hexo-theme-next
on my old hexo blog.
But now I found that there seem no way to remove default layout in 8.0.2;
In old version of hexo-theme-next
,I can just change the .twig file to have a customized index page, but with 8.0.2, It seems that I can only insert new section into specific location.
What I want is like change this(part of code in old-version index.twig):
{% block class %}index posts-expand{% endblock %}
Into this:
{% block class %}
{%- if config.content.mode == normala %}
index posts-expand
{%- elif config.content.mode == montage %}
index posts-montage
{%- endif %}
{% endblock %}
is there still any way to remove section from default layout?