前言
今天突然看到有个帖子说什么“F5”已烂之类的梗,就想着回去写一篇页面资源缓存的小总结。毕竟,缓存和重用以前获取的资源的能力也是优化性能很关键的一个方面嘛。
more >>
Code&Life
缺失模块。
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