以下页面已加密,密码为:123456
点击访问
你的网站文件夹,举例为website。
website
命令行进入到webiste目录。
webiste
执行命令安装hexo插件:
1
npm install hexo-blog-encrypt
_config.yml
1234567
# hexo 支持 加密访问文章 插件encrypt: enable: true abstract: Here's something encrypted, password is required to continue reading. message: Hey, password is required here. wrong_pass_message: Oh, this is an invalid password. Check and try again, please. wrong_hash_message: Oh, these decrypted content cannot be verified, but you can still have a look.
front-matter
password: 123456
hexo clean && hexo g && hexo s
引用: