feat: support of Hugo 0.22+

This commit is contained in:
matcornic 2017-07-27 21:42:07 +02:00
parent 27b99f0f18
commit b2ac8298bf
23 changed files with 498 additions and 388 deletions
static/js

View file

@ -17,7 +17,7 @@ var getUrlParameter = function getUrlParameter(sPageURL) {
};
// Execute actions on images generated from Markdown pages
var images = $("div#body-inner img");
var images = $("div#body-inner img").not(".inline");
// Wrap image inside a featherlight (to get a full size view in a popup)
images.wrap(function(){
var image =$(this);
@ -56,10 +56,10 @@ images.each(function(index){
});
// Stick the top to the top of the screen when scrolling
$("#top-bar").stick_in_parent( {
parent: ".sticky-parent",
spacer: ".sticky-spacer",
});
//$("#top-bar").stick_in_parent( {
// parent: ".sticky-parent",
// spacer: ".sticky-spacer",
//});
jQuery(document).ready(function() {