hexo问题记录

<ol>
<li><p>hexo添加feed插件后报错</p>
<pre><code><figure class="highlight"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html</div><div class="line">Template render error: (unknown path) [Line 8, Column 23]</div><div class="line">Error: Unable to call the return value of (posts[&quot;first&quot;])[&quot;updated&quot;][&quot;toISOStrin&quot;], which is undefined or falsey</div><div class="line"> at Object.exports.withPrettyErrors (E:\hexo\node_modules\hexo-generator-feed\node_modules\nunjucks\src\lib.js:35:17)</div><div class="line"> at Obj.extend.render (E:\hexo\node_modules\hexo-generator-feed\node_modules\nunjucks\src\environment.js:374:20)</div><div class="line"> at Hexo.module.exports (E:\hexo\node_modules\hexo-generator-feed\lib\generator.js:33:22)</div></pre></td></tr></table></figure>
</code></pre></li>
<li><p>添加feed插件后hexo server无法使用</p>
<p> 原因是在站点的配置文件中添加了 </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">plugins:</div><div class="line">- hexo-generator-feed</div></pre></td></tr></table></figure>
<p> 去掉改配置,将依赖添加到站点的package.json中即可解决</p>
</li>
<li><p>升级win10后,hexo d 无法部署问题<br> 重新生成公钥,gitbash将公钥默认生成到C:\Windows\System32\config\systemprofile.ssh目录下 需要保证用户对该目录有读写权限</p>
</li>
</ol>

创作不易,转载请注明文章来源为www.full-satcker.com:邢桂帅 » hexo问题记录

赞 (0)
分享到:更多 ()

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址