Sometimes we want to write something that we don’t want all the web users to read. And the way we add password at <head> is no safe. So we can use hexo plugin hexo-blog-encrypt
to set password for our post.
Use npm to install.
1 | npm install hexo-blog-encrypt |
Use yarn to install
1 | yarn add hexo-blog-encrypt |
In your root _config.yml
file, add these:
1 | # encrypt plugin |
Default abstract is the default description of your post. And default message is the default message that shows before the input frame.
Or, you can set it in every post.
1 | keywords: 博客文章密码 |