hexo配置

hexo初始化后需要配置的地方还是比较多的

本教程的内容环境为Hexo v3.8.0 | 主题 – NexT.Pisces v6.6.0

hexo-encypt配置

用于文章加密。
启用文章加密需要安装hexo-blog-encrypt,在hexo根目录下执行

1
npm install hexo-blog-encrypt --save

在站点_config.yml里添加

1
2
3
# 文章加密功能
encrypt:
enable: true

启用加密功能需要在文章的Front-matter部分添加password字段即可。建议修改post.md模版,目录为/scaffolds

1
2
3
4
5
6
7
8
9
---
title: {{ title }}
date: {{ date }}
tags:
categories:
password: #文章密码
abstract: #文章摘要
message: #密码提示
---

symblos_count_time配置

symblos_count_time用于站点字数、阅读时间统计等。
启用该功能需要安装hexo-symbols-count-time,在hexo根目录和next主题目录下执行

1
npm install hexo-symbols-count-time --save

在站点配置文件里加上

1
2
3
4
5
symbols_count_time:
symbols: true
time: true
total_symbols: true
total_time: true

next主题的配置文件里把separated_meta的值改为true就行

其他的以后再说,先挖个坑!!!