0%

关于更换next无法访问的问题

错误现象

  • 网页访问页面
1
2
3
4
5
%}page-home{% endif - %} {% endblock %}{% block content %}
f% for post in page.posts %}ff post_template.render(post,true)}} {% endfor %}
{% include '_partials/pagination.swig' %} [(% endblock %]{% block sidebar %}{f sidebar_template.renderfalse)}f(% endblock %}
{% extends ' layoutswig' %](p% import'_macro/postswig as post template %)(% import' macro/sidebarswig'as sidebar template %}{% block title %]l
config.title H(% if theme.index with subtitle and confiq subtitle %)- (config.subtitle )H(% endif %)(% endblock %) {% block page class %) (% ifis home)
  • hexo命令提示

9vKoY.png


解决方案

如果同时出现以上两个现象,说明使用命令行下载的时候,next主题下载网址不对,应该改成命令提示中的网站。

值得一提的是连next官网的指南和相当多的博客上的下载网址都是旧的,会出现以上错误,需要用命令行报错中的网站下载next。

下面是next文档教程里的截图,这个地址和大多数博客提供的地址一样,但显然没有更新,需要用新地址。

9UNcJ.png