'配置命令'


阅读数: 次   
字数:9字 | 预计阅读时长:1分钟
本文作者: DuoXingLuoYu
本文链接: https://duoxingluoyu.github.io/2020/06/21/%E9%85%8D%E7%BD%AE%E5%91%BD%E4%BB%A4/
版权声明: 本作品采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可。转载请注明出处!

tag:

    缺失模块。
    1、请确保node版本大于6.2
    2、在博客根目录(注意不是yilia根目录)执行以下命令:
    npm i hexo-generator-json-content --save

    3、在根目录_config.yml里添加配置:

      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
    

很惭愧<br><br>只做了一点微小的工作<br>谢谢大家