D0n9X1n / hexo-blog-encrypt

Yet, just another hexo plugin for security.
https://www.npmjs.com/package/hexo-blog-encrypt
MIT License
986 stars 102 forks source link

兴奋的跑去安装发现装不上(・-・*) #2

Closed ieayoio closed 7 years ago

ieayoio commented 7 years ago

npm ERR! install Couldn't read dependencies

D0n9X1n commented 7 years ago

能贴下你的 package.json 和 具体的报错 log 吗?

D0n9X1n commented 7 years ago

snip20160922_7

测试下来安装没有问题。

ieayoio commented 7 years ago

image

ieayoio commented 7 years ago
{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.2.2"
  },
  "dependencies": {
    "hexo": "^3.2.0",
    "hexo-admin": "^2.1.0",
    "hexo-deployer-git": "^0.2.0",
    "hexo-deployer-heroku": "^0.1.1",
    "hexo-deployer-openshift": "^0.1.1",
    "hexo-deployer-rsync": "^0.1.2",
    "hexo-generator-archive": "^0.1.4",
    "hexo-generator-baidu-sitemap": "^0.1.2",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-feed": "^1.2.0",
    "hexo-generator-index": "^0.2.0",
    "hexo-generator-search": "^1.0.2",
    "hexo-generator-sitemap": "^1.1.2",
    "hexo-generator-tag": "^0.2.0",
    "hexo-renderer-ejs": "^0.2.0",
    "hexo-renderer-marked": "^0.2.11",
    "hexo-renderer-stylus": "^0.2.3",
    "hexo-server": "^0.2.0",
    "marked": "^0.3.6",
    "hexo-blog-encrypt": "1.1.*"
  }
}
ieayoio commented 7 years ago

安装好了什么也不设置,直接hexo g 就报错了

D0n9X1n commented 7 years ago

更新至 v1.1.1 版本,引入那个新特性带来的 bug。哈哈

D0n9X1n commented 7 years ago

npm update 就好

ieayoio commented 7 years ago

貌似设置了无效果 本地查看也没用,部署也没用,使用的是这样的方法:

---
title: hello world
date: 2016-03-30 21:18:02
tags:
    - fdsfadsfa
    - fdsafsdaf
password: Mike
abstract: Welcome to my blog, enter password to read.
message: Welcome to my blog, enter password to read.
---
D0n9X1n commented 7 years ago

_config.yml 里面有启用加密插件吗?

# Security
##
encrypt:
    enable: true
D0n9X1n commented 7 years ago

运行以下命令试试:

npm update && hexo clean && hexo g && hexo s
ieayoio commented 7 years ago

可以了,O(∩_∩)O哈哈~

D0n9X1n commented 7 years ago

OK,还有发现什么 bug,尽管提啊。

ieayoio commented 7 years ago

哈哈哈谢谢大神,应该暂时还没bug,不过有个更好的建议: 如果用户可以有自己的关于加密配置的文件模板,甚至有多个模板,甚至模板里包含密码,在写文章时,如果其他加密字段不设置,只需要设置一个“encrypt_template”的字段(“encrypt_template”的值最好可以选择Hexo-Blog-Encrypt默认的模板,或者让用户手动把默认的模板写入自己的配置文件),这样加密就变的很容易了

D0n9X1n commented 7 years ago

哈哈,你也可以试试 hexo-tag-cloud 插件。

ieayoio commented 7 years ago

orz原来hexo的这个是你做的啊,之前就见人在hexo上用过,厉害厉害,不过我一直有点介意这种标签不能通过ctrl+f搜索了,还有就是标签太多可能就不方便自我整理了

ieayoio commented 7 years ago

还有能不能增加一个小功能就是输入完密码,回车可以确定

D0n9X1n commented 7 years ago

v1.1.5 加入回车确定。