hexo run custom script after site generated Create custom script file create new custom script file inside your hexo project dir/scripts/script-file-name.js.
programming
snippet
,
javascript
,
script
,
hexo
Create custom script file
create new custom script file inside <your hexo project dir>/scripts/script-file-name.js
.
<your hexo project dir>
is your current site directory
fill below codes
'use strict';
/**
* clean auto generated files inside .deploy_git
*/
// const path = require('path');
// const fs = require('fs-extra');
hexo.extend.filter.register('after_generate', function () {
// your logic codes here
});