This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var util = require('hexo-util'); | |
hexo.extend.generator.register('tipue-search-json', hexo_generator_tipue_search_json); | |
function hexo_generator_tipue_search_json(site) { | |
var minify = function (str) { | |
return util.stripHTML(str).trim().replace(/\n/g, ' ').replace(/\s+/g, ' '); | |
}, | |
keys = { |