Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block ntot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ntot / index.js
Created Apr 21, 2017
Tipue Hexo Search
View index.js
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 = {
You can’t perform that action at this time.