diff --git a/lib/generator.js b/lib/generator.js index c65ad40..00b595c 100644 --- a/lib/generator.js +++ b/lib/generator.js @@ -4,7 +4,7 @@ const nunjucks = require('nunjucks'); const env = new nunjucks.Environment(); const { join } = require('path'); const { readFileSync } = require('fs'); -const gravatar = require('hexo/lib/plugins/helper/gravatar'); // eslint-disable-line node/no-unpublished-require +const { gravatar } = require('hexo-util'); env.addFilter('uriencode', str => { return encodeURI(str); diff --git a/package.json b/package.json index 0c02794..63872db 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ ], "license": "MIT", "dependencies": { - "hexo": "^3.9.0", + "hexo-util": "^1.3.0", "nunjucks": "^3.0.0" }, "devDependencies": {