Use hexo variable for public folder

http://searene.me/2016/07/17/Hexo-Source-Code-Demystified/
This commit is contained in:
weyusi 2018-09-28 17:48:21 +09:30
parent 71c5878400
commit 64e72c6248
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ function logic_gzip() {
// Return if disabled. // Return if disabled.
if (false === options.enable) return; if (false === options.enable) return;
var publicFolder = hexo.base_dir+'public'; var publicFolder = hexo.public_dir;
var compressFile = function (currentPath) { var compressFile = function (currentPath) {
var files = fs.readdirSync(currentPath); var files = fs.readdirSync(currentPath);

View File

@ -1,7 +1,7 @@
{ {
"name": "hexo-yam", "name": "hexo-yam",
"description": "Yet Another Minifier. Minify and compress html, js and css", "description": "Yet Another Minifier. Minify and compress html, js and css",
"version": "0.4.1", "version": "0.4.2",
"readme": "README.md", "readme": "README.md",
"main": "index.js", "main": "index.js",
"directories": { "directories": {