Switch to hexo-yam
imagemin module of hexo-all-minifier has vulnerabilities https://snyk.io/test/npm/hexo-all-minifier Use pre-compressed images instead
|
@ -70,9 +70,9 @@ theme: typing
|
||||||
nofollow:
|
nofollow:
|
||||||
enable: true
|
enable: true
|
||||||
|
|
||||||
# hexo-all-minifier
|
# hexo-yam
|
||||||
## https://github.com/chenzhutian/hexo-all-minifier
|
## https://github.com/weyusi/hexo-yam
|
||||||
all_minifier: true
|
neat_enable: true
|
||||||
|
|
||||||
# Deployment
|
# Deployment
|
||||||
## Docs: https://hexo.io/docs/deployment.html
|
## Docs: https://hexo.io/docs/deployment.html
|
||||||
|
|
|
@ -7,15 +7,15 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"hexo": "latest",
|
"hexo": "latest",
|
||||||
"hexo-all-minifier": "latest",
|
|
||||||
"hexo-autonofollow": "latest",
|
"hexo-autonofollow": "latest",
|
||||||
"hexo-generator-archive": "latest",
|
"hexo-generator-archive": "latest",
|
||||||
"hexo-generator-category": "latest",
|
"hexo-generator-category": "latest",
|
||||||
"hexo-generator-index": "latest",
|
"hexo-generator-index": "latest",
|
||||||
"hexo-generator-tag": "latest",
|
"hexo-generator-tag": "latest",
|
||||||
"hexo-renderer-ejs": "latest",
|
"hexo-renderer-ejs": "latest",
|
||||||
"hexo-renderer-stylus": "latest",
|
|
||||||
"hexo-renderer-marked": "latest",
|
"hexo-renderer-marked": "latest",
|
||||||
"hexo-server": "latest"
|
"hexo-renderer-stylus": "latest",
|
||||||
|
"hexo-server": "latest",
|
||||||
|
"hexo-yam": "latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 695 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.2 KiB |
|
@ -1 +1,78 @@
|
||||||
(function($){$(".article-entry").each(function(i){$(this).find("img").each(function(){if($(this).parent().hasClass("fancybox"))return;var alt=this.alt;if(alt){$(this).after('<span class="caption">'+alt+"</span>")}$(this).wrap('<a href="'+this.src+'" title="'+alt+'" class="fancybox"></a>')});$(this).find(".fancybox").each(function(){$(this).attr("rel","article"+i)})});if($.fancybox){$(".fancybox").fancybox()}$(document).ready(function(){var QRBox=$("#QRBox");var MainBox=$(".MainBox");var BTCQR=$("#BTCQR");var AliPayQR=$("#AliPayQR");var WeChatQR=$("#WeChatQR");var currentQR;function showQR(QR){$("#DonateText,#donateBox,#github").addClass("blur");currentQR=QR;QRBox.fadeIn(300,function(argument){QR.addClass("showQR")})}$("#donateBox>li").click(function(event){var thisID=$(this).attr("id");if(thisID==="BTC"){showQR(BTCQR);new Clipboard("#BTCBn")}else if(thisID==="AliPay"){showQR(AliPayQR)}else if(thisID==="WeChat"){showQR(WeChatQR)}});MainBox.click(function(event){if(currentQR)currentQR.removeClass("showQR").addClass("hideQR");setTimeout(function(a){QRBox.fadeOut(300,function(argument){MainBox.removeClass("hideQR")});$("#DonateText,#donateBox,#github").removeClass("blur")},600)});$("#menu").click(function(event){var nav=$("#main-nav");nav.toggle("fast")});$(window).resize(function(){var viewportWidth=$(window).width();if(viewportWidth>468){$("#main-nav").show("fast")}else{$("#main-nav").hide("fast")}})})})(jQuery);
|
(function ($) {
|
||||||
|
// Caption
|
||||||
|
$('.article-entry').each(function (i) {
|
||||||
|
$(this).find('img').each(function () {
|
||||||
|
if ($(this).parent().hasClass('fancybox')) return
|
||||||
|
|
||||||
|
var alt = this.alt
|
||||||
|
|
||||||
|
if (alt) {
|
||||||
|
$(this).after('<span class="caption">' + alt + '</span>')
|
||||||
|
}
|
||||||
|
|
||||||
|
$(this).wrap('<a href="' + this.src + '" title="' + alt + '" class="fancybox"></a>')
|
||||||
|
})
|
||||||
|
|
||||||
|
$(this).find('.fancybox').each(function () {
|
||||||
|
$(this).attr('rel', 'article' + i)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
if ($.fancybox) {
|
||||||
|
$('.fancybox').fancybox()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
var QRBox = $('#QRBox');
|
||||||
|
var MainBox = $('.MainBox');
|
||||||
|
var BTCQR = $('#BTCQR');
|
||||||
|
var AliPayQR = $('#AliPayQR');
|
||||||
|
var WeChatQR = $('#WeChatQR');
|
||||||
|
var currentQR;
|
||||||
|
|
||||||
|
function showQR(QR) {
|
||||||
|
$('#DonateText,#donateBox,#github').addClass('blur');
|
||||||
|
currentQR = QR;
|
||||||
|
QRBox.fadeIn(300,function(argument) {
|
||||||
|
QR.addClass('showQR');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#donateBox>li').click(function(event) {
|
||||||
|
var thisID = $(this).attr('id');
|
||||||
|
if (thisID === 'BTC') {
|
||||||
|
showQR(BTCQR);
|
||||||
|
new Clipboard('#BTCBn');
|
||||||
|
} else if (thisID === 'AliPay') {
|
||||||
|
showQR(AliPayQR);
|
||||||
|
} else if (thisID === 'WeChat') {
|
||||||
|
showQR(WeChatQR);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
MainBox.click(function(event) {
|
||||||
|
if (currentQR) currentQR.removeClass('showQR').addClass('hideQR');
|
||||||
|
setTimeout (function(a) {
|
||||||
|
QRBox.fadeOut(300,function(argument) {
|
||||||
|
MainBox.removeClass('hideQR');
|
||||||
|
});
|
||||||
|
$('#DonateText,#donateBox,#github').removeClass('blur');
|
||||||
|
},600);
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#menu').click(function (event) {
|
||||||
|
var nav = $('#main-nav');
|
||||||
|
nav.toggle('fast');
|
||||||
|
});
|
||||||
|
|
||||||
|
$(window).resize(function () {
|
||||||
|
var viewportWidth = $(window).width();
|
||||||
|
if (viewportWidth > 468) {
|
||||||
|
$('#main-nav').show('fast');
|
||||||
|
} else {
|
||||||
|
$('#main-nav').hide('fast');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})(jQuery)
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.3 KiB |
|
@ -1,42 +1 @@
|
||||||
<?xml version="1.0" standalone="no"?>
|
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="1066.667" height="1066.667" viewBox="0 0 800 800"><path d="M2 .6c0 .3 22.3 22.8 49.5 50l49.4 49.4 25-25 25-25 24 24c13.2 13.2 24.2 24 24.5 24 .3 0 .6-22.1.6-49V0h-99C46.5 0 2 .3 2 .6zM202 .6c0 .3 22.4 22.9 49.9 50.4l49.8 49.8-49.6 49.6-49.6 49.6h398.4l49.6-49.6 49.5-49.5-25-25-25-25 25-25C688.7 12.2 700 .7 700 .5c0-.3-22.5-.5-50-.5-39.3 0-50 .3-50 1.2 0 .7-22.3 23.6-49.6 50.9l-49.6 49.6L450 50.9 399.1 0h-98.5c-54.2 0-98.6.3-98.6.6zM750.6 51.9l-48.9 48.9 25 25 25 25-24.6 24.6-24.6 24.6H800v-98.5c0-54.2-.1-98.5-.3-98.5-.1 0-22.2 22-49.1 48.9zM0 150.6v48.5L50.9 250l50.8 50.8-49.6 49.6C24.8 377.7 1.9 400 1.2 400 .3 400 0 441 0 600c0 110 .2 200 .5 200 .2 0 22.7-22.3 50-49.6l49.5-49.5-25-25-25-25 25-25c13.7-13.7 25-25.2 25-25.4 0-.3-22-.5-49-.5s-49-.3-49-.6 22.3-22.8 49.5-50l49.4-49.4 49 49c26.9 26.9 49.2 49 49.5 49 .3 0 .6-89.3.6-198.5V200.9l-49.6-49.6-49.6-49.6-25 25-25 25L26 126.9C12.3 113.2.9 102 .6 102c-.3 0-.6 21.9-.6 48.6zM600 401v199H400c-159 0-200 .3-200 1.2 0 .7-22.1 23.4-49.2 50.5l-49.1 49.1 25 25 25 25-24.6 24.6-24.6 24.6h98.4l50-50 50-50 50 50 50 50h98.5c54.2 0 98.6-.3 98.6-.6s-22.1-22.6-49-49.5l-49-49 50.4-50.5 50.5-50.4 50 50 50 50 25-25 25-25 24 24c13.2 13.2 24.2 24 24.5 24 .3 0 .6-21.9.6-48.6v-48.5l-50-50-50-50 50-50 50-50V202.5l-49.6 49.6-49.6 49.6-49.8-49.8c-27.5-27.5-50.1-49.9-50.4-49.9-.3 0-.6 89.5-.6 199zM250 301v51l50.8-.2 50.7-.3.3-50.8.2-50.7H250v51z"/><path d="M450 301v51l50.8-.2 50.7-.3.3-50.8.2-50.7H450v51zM250 501v51l50.8-.2 50.7-.3.3-50.8.2-50.7H250v51zM450 501v51l50.8-.2 50.7-.3.3-50.8.2-50.7H450v51zM600 751v49h99c54.5 0 99-.2 99-.6 0-.3-21.9-22.4-48.6-49.1l-48.6-48.6-25 25-25 25-24.8-24.8c-13.7-13.7-25.1-24.9-25.4-24.9-.3 0-.6 22-.6 49z"/></svg>
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
|
||||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
||||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
|
||||||
width="800.000000pt" height="800.000000pt" viewBox="0 0 800.000000 800.000000"
|
|
||||||
preserveAspectRatio="xMidYMid meet">
|
|
||||||
<metadata>
|
|
||||||
Created by potrace 1.11, written by Peter Selinger 2001-2013
|
|
||||||
</metadata>
|
|
||||||
<g transform="translate(0.000000,800.000000) scale(0.100000,-0.100000)"
|
|
||||||
fill="#000000" stroke="none">
|
|
||||||
<path d="M20 7994 c0 -3 223 -228 495 -500 l494 -494 250 250 250 250 240
|
|
||||||
-240 c132 -132 242 -240 245 -240 3 0 6 221 6 490 l0 490 -990 0 c-545 0 -990
|
|
||||||
-3 -990 -6z"/>
|
|
||||||
<path d="M2020 7994 c0 -3 224 -229 499 -504 l498 -498 -496 -496 -496 -496
|
|
||||||
1992 0 1992 0 496 496 495 495 -250 250 -250 250 250 250 c137 137 250 252
|
|
||||||
250 254 0 3 -225 5 -500 5 -393 0 -500 -3 -500 -12 0 -7 -223 -236 -496 -509
|
|
||||||
l-496 -496 -508 508 -509 509 -985 0 c-542 0 -986 -3 -986 -6z"/>
|
|
||||||
<path d="M7506 7481 l-489 -489 250 -250 250 -250 -246 -246 -246 -246 488 0
|
|
||||||
487 0 0 985 c0 542 -1 985 -3 985 -1 0 -222 -220 -491 -489z"/>
|
|
||||||
<path d="M0 6494 l0 -485 509 -509 508 -508 -496 -496 c-273 -273 -502 -496
|
|
||||||
-509 -496 -9 0 -12 -410 -12 -2000 0 -1100 2 -2000 5 -2000 2 0 227 223 500
|
|
||||||
496 l495 495 -250 250 -250 250 250 250 c137 137 250 252 250 254 0 3 -220 5
|
|
||||||
-490 5 -270 0 -490 3 -490 6 0 3 223 228 495 500 l494 494 490 -490 c269 -269
|
|
||||||
492 -490 495 -490 3 0 6 893 6 1985 l0 1986 -496 496 -496 496 -250 -250 -250
|
|
||||||
-250 -248 248 c-137 137 -251 249 -254 249 -3 0 -6 -219 -6 -486z"/>
|
|
||||||
<path d="M6000 3990 l0 -1990 -2000 0 c-1590 0 -2000 -3 -2000 -12 0 -7 -221
|
|
||||||
-234 -492 -505 l-491 -491 250 -250 250 -250 -246 -246 -246 -246 492 0 492 0
|
|
||||||
500 500 500 500 500 -500 500 -500 985 0 c542 0 986 3 986 6 0 3 -221 226
|
|
||||||
-490 495 l-490 490 504 505 505 504 500 -500 500 -500 250 250 250 250 240
|
|
||||||
-240 c132 -132 242 -240 245 -240 3 0 6 219 6 486 l0 485 -500 500 -500 500
|
|
||||||
500 500 500 500 0 992 0 992 -496 -496 -496 -496 -498 498 c-275 275 -501 499
|
|
||||||
-504 499 -3 0 -6 -895 -6 -1990z"/>
|
|
||||||
<path d="M2500 4990 l0 -510 508 2 507 3 3 508 2 507 -510 0 -510 0 0 -510z"/>
|
|
||||||
<path d="M4500 4990 l0 -510 508 2 507 3 3 508 2 507 -510 0 -510 0 0 -510z"/>
|
|
||||||
<path d="M2500 2990 l0 -510 508 2 507 3 3 508 2 507 -510 0 -510 0 0 -510z"/>
|
|
||||||
<path d="M4500 2990 l0 -510 508 2 507 3 3 508 2 507 -510 0 -510 0 0 -510z"/>
|
|
||||||
<path d="M6000 490 l0 -490 990 0 c545 0 990 2 990 6 0 3 -219 224 -486 491
|
|
||||||
l-486 486 -250 -250 -250 -250 -248 248 c-137 137 -251 249 -254 249 -3 0 -6
|
|
||||||
-220 -6 -490z"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.7 KiB |