第一次写长文章,感觉全部放在首页没有美感,想要截断却有点难找,以此记录
- 文章截断的位置需要我们自己选择,只需要在文章合适的地方加上
<!-- more -->即可,上下行最好留出空行 - 至于截断后替换的内容,可以设置主题下的
_config.yml中的excerpt_link,内容不需要用'括起来
学会折腾
缺失模块。
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