记录下出现的 问题:日志出现Cannot GET /archives/%7C%7C%20list/问题
综合了网上的解决办法:
1,themes/next/_config.yml 文件下将archives:/archives/ || archive 改成archives:/archives/
删掉后面的||archive,的确能够解决问题,但是就没有图标了
2,也是我后来采用的方法。
next主题目录下
/layout/_macro/sidebar.swig文件中找到
<a href="{{ url_for(theme.menu.archives).split('||')[0] | trim }}" target="_blank" rel="external nofollow" > 原因是url_for函数将||转码了,
改成<a href="{{url_for(theme.menu.archives.split('||')[0])| trim}}" target="_blank" rel="external nofollow" >即可