Hexo yilia 点击所有文章提示缺失模块

问题

点击所有文章提示缺失模块

解决办法

  • 确保node版本大于6.2
  • 在博客根目录(注意不是yilia根目录)执行以下命令:npm install hexo-generator-json-content --save
  • 在hexo的blog根目录_config.yml里添加配置(保持格式,不要改动任何空格缩进),关掉hexo s之后执行hexo g重新生成:
jsonContent:
  meta: false
  pages: false
  posts:
    title: true
    date: true
    path: true
    text: false
    raw: false
    content: false
    slug: false
    updated: false
    comments: false
    link: false
    permalink: false
    excerpt: false
    categories: false
    tags: true

猜你喜欢

转载自blog.csdn.net/dta0502/article/details/84389827