文章类型
分为技术类文章tech(默认)和图文类文章story.
_config.stellar.yml
文章模板
编辑post.md,根据需要选择保留部分Front-matter,其他字段根据文章需要添加.
scaffolds/post.md1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| ---
title: {{ title }} date: {{ date }} tags: [] categories: [] description:
cover: banner: poster: topic: headline: caption: color:
sticky: mermaid: katex: mathjax:
topic: author: references: comments: indexing: breadcrumb: leftbar: rightbar: h1: type: share: indexing: ---
|
相关文章推荐
需要安装插件:hexo-related-popular-posts,插件在大规模文章下可能会增加编译时间。
1
| npm install hexo-related-popular-posts --save
|
在主题配置文件中开启相关文章推荐功能。
_config.stellar.yml1 2 3 4
| related_posts: enable: true max_count: 5
|
相关文章推荐功能默认显示5篇相关文章,可在主题配置文件中修改max_count参数,首次使用需要清理缓存并生成静态文件。
参考资料
文中插入参考资料方便阅读查阅,用 markdown 格式填写引用的文章,注意要写在引号中:
/source/_posts/xxx.md1 2 3 4 5 6
| --- references: - '[心跳之旅—💗—iOS用手机摄像头检测心率(PPG)](https://punmy.cn/2016/07/28/15231176397746.html)' - '[PPG光电容积脉搏波描记法技术概况](https://www.jianshu.com/p/695c131abfa5)' ... ---
|
许可协议
更改协议内容或者自定义其他选项,支持 MarkDown 语法.
_config.stellar.yml1 2 3
| article: license: 本文章采用 [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh) 协议进行许可,转载请注明出处。
|
分享链接
_config.stellar.yml1 2
| share: [wechat, weibo, email, link]
|
头部标签
Open Graph
默认生成 Open Graph 标签,如果您不希望生成它,可以在主题配置文件中关闭:
_config.stellar.yml1 2 3
| open_graph: enable: true twitter_id:
|
quot 强调引用