Skip to content

Commit

Permalink
refactor: use gravatar from hexo-util
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Sep 24, 2019
1 parent c2180bc commit f689d33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
],
"license": "MIT",
"dependencies": {
"hexo": "^3.9.0",
"hexo-util": "^1.3.0",
"nunjucks": "^3.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit f689d33

Please sign in to comment.