三、创建数据库模型Model
- blog
- config
- comment
blog
author、category都有外键(foreignkey一对多关系),每篇文章只有一个分类,而一个分类下可以有多篇文章
tag的ManyToManyField字段是多对多关系,一篇文章可以有多个标签,一个标签下也可以有多篇文章
|
|
config
comment
Changing & Building
blog
author、category都有外键(foreignkey一对多关系),每篇文章只有一个分类,而一个分类下可以有多篇文章
tag的ManyToManyField字段是多对多关系,一篇文章可以有多个标签,一个标签下也可以有多篇文章
|
|
config
comment
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