This commit is contained in:
parent
cc48355c18
commit
68dcd09364
|
@ -20,15 +20,11 @@
|
||||||
{{ partial "body/photoswipe" . }}
|
{{ partial "body/photoswipe" . }}
|
||||||
|
|
||||||
{{ $masonry := resources.Get `js/masonry.pkgd.min.js` | fingerprint }}
|
{{ $masonry := resources.Get `js/masonry.pkgd.min.js` | fingerprint }}
|
||||||
{{ $enquire := resources.Get `js/enquire.min.js` | fingerprint }}
|
<script defer src="{{ $masonry.RelPermalink }}"></script>
|
||||||
{{ $imagesloaded := resources.Get `js/imagesloaded.pkgd.min.js` | fingerprint }}
|
{{ $imagesloaded := resources.Get `js/imagesloaded.pkgd.min.js` | fingerprint }}
|
||||||
|
<script defer src="{{ $imagesloaded.RelPermalink }}"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
fetchInject([
|
|
||||||
"{{ $masonry.RelPermalink }}",
|
|
||||||
"{{ $imagesloaded.RelPermalink }}",
|
|
||||||
"{{ $enquire.RelPermalink }}",
|
|
||||||
]).then(() => {
|
|
||||||
var $grid = $('.grid').masonry({
|
var $grid = $('.grid').masonry({
|
||||||
itemSelector: '.grid-item',
|
itemSelector: '.grid-item',
|
||||||
columnWidth: '.grid-sizer',
|
columnWidth: '.grid-sizer',
|
||||||
|
@ -91,8 +87,6 @@
|
||||||
$('.grid-sizer').removeClass('quarter');
|
$('.grid-sizer').removeClass('quarter');
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,15 +1,12 @@
|
||||||
{{ if $.Param "enableCustomScrollbar" }}
|
{{ if $.Param "enableCustomScrollbar" }}
|
||||||
|
|
||||||
{{ $customscrollbar := resources.Get `js/perfect-scrollbar.jquery.min.js` | fingerprint }}
|
{{ $customscrollbar := resources.Get `js/perfect-scrollbar.jquery.min.js` | fingerprint }}
|
||||||
|
<script defer src="{{ $customscrollbar.RelPermalink }}"></script>
|
||||||
{{ $customScrollbarStyle := resources.Get "css/perfect-scrollbar.min.css" }}
|
{{ $customScrollbarStyle := resources.Get "css/perfect-scrollbar.min.css" }}
|
||||||
|
<script defer src="{{ $customScrollbarStyle.RelPermalink }}"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
fetchInject([
|
|
||||||
"{{ $customscrollbar.RelPermalink }}",
|
|
||||||
"{{ $customScrollbarStyle.RelPermalink }}",
|
|
||||||
]).then(() => {
|
|
||||||
var pre = $('pre');
|
var pre = $('pre');
|
||||||
pre.perfectScrollbar();
|
pre.perfectScrollbar();
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -68,17 +68,15 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ $photoSwipe := resources.Get `js/photoswipe.min.js` | fingerprint }}
|
{{ $photoSwipe := resources.Get `js/photoswipe.min.js` | fingerprint }}
|
||||||
|
<script defer src="{{ $photoSwipe.RelPermalink }}"></script>
|
||||||
{{ $photoSwipeUi := resources.Get `js/photoswipe-ui-default.min.js` | fingerprint }}
|
{{ $photoSwipeUi := resources.Get `js/photoswipe-ui-default.min.js` | fingerprint }}
|
||||||
|
<script defer src="{{ $photoSwipeUi.RelPermalink }}"></script>
|
||||||
{{ $photoSwipeStyle := resources.Get "css/photoswipe/photoswipe.css" }}
|
{{ $photoSwipeStyle := resources.Get "css/photoswipe/photoswipe.css" }}
|
||||||
|
<script defer src="{{ $photoSwipeStyle.RelPermalink }}"></script>
|
||||||
{{ $photoSwipeSkin := resources.Get "css/photoswipe/custom-skin.css" }}
|
{{ $photoSwipeSkin := resources.Get "css/photoswipe/custom-skin.css" }}
|
||||||
|
<script defer src="{{ $photoSwipeSkin.RelPermalink }}"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
fetchInject([
|
|
||||||
"{{ $photoSwipe.RelPermalink }}",
|
|
||||||
"{{ $photoSwipeUi.RelPermalink }}",
|
|
||||||
"{{ $photoSwipeStyle.RelPermalink }}",
|
|
||||||
"{{ $photoSwipeSkin.RelPermalink }}",
|
|
||||||
]).then(() => {
|
|
||||||
var pswpElement = $('.pswp')[0];
|
var pswpElement = $('.pswp')[0];
|
||||||
var imgElements = $('.single__contents').find('img');
|
var imgElements = $('.single__contents').find('img');
|
||||||
var items = [];
|
var items = [];
|
||||||
|
@ -119,7 +117,6 @@
|
||||||
})
|
})
|
||||||
gallery.init();
|
gallery.init();
|
||||||
}
|
}
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,5 +1,3 @@
|
||||||
{{ $fetchinject := resources.Get "js/fetch-inject.umd.min.js" | resources.Fingerprint }}
|
|
||||||
<script src="{{ $fetchinject.RelPermalink }}"></script>
|
|
||||||
{{ $jquery := resources.Get "js/jquery.min.js" | resources.Fingerprint }}
|
{{ $jquery := resources.Get "js/jquery.min.js" | resources.Fingerprint }}
|
||||||
<script src="{{ $jquery.RelPermalink }}"></script>
|
<script src="{{ $jquery.RelPermalink }}"></script>
|
||||||
{{ $enquire := resources.Get "js/enquire.min.js" | resources.Fingerprint }}
|
{{ $enquire := resources.Get "js/enquire.min.js" | resources.Fingerprint }}
|
||||||
|
|
|
@ -8,11 +8,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ $toc := resources.Get `js/jquery.toc.min.js` | fingerprint }}
|
{{ $toc := resources.Get `js/jquery.toc.min.js` | fingerprint }}
|
||||||
|
<script defer src="{{ $toc.RelPermalink }}"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
fetchInject([
|
|
||||||
"{{ $toc.RelPermalink }}",
|
|
||||||
]).then(() => {
|
|
||||||
var navbar = $('.navbar');
|
var navbar = $('.navbar');
|
||||||
|
|
||||||
$("#toc").toc({ content: ".single__contents", headings: "h1,h2,h3,h4" });
|
$("#toc").toc({ content: ".single__contents", headings: "h1,h2,h3,h4" });
|
||||||
|
@ -105,7 +103,6 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,10 +1,8 @@
|
||||||
{{ if $.Param "enableMark" }}
|
{{ if $.Param "enableMark" }}
|
||||||
{{ $mark := resources.Get "js/jquery.mark.min.js" | fingerprint }}
|
{{ $mark := resources.Get "js/jquery.mark.min.js" | fingerprint }}
|
||||||
|
<script defer src="{{ $mark.RelPermalink }}"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
fetchInject([
|
|
||||||
"{{ $mark.RelPermalink }}",
|
|
||||||
]).then(() => {
|
|
||||||
var mark = function () {
|
var mark = function () {
|
||||||
var keyword = $("#search").val();
|
var keyword = $("#search").val();
|
||||||
var options = {
|
var options = {
|
||||||
|
@ -36,6 +34,5 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
$("#search").on("input", mark);
|
$("#search").on("input", mark);
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
{{ partial "sidebar/site-mark" . }}
|
{{ partial "sidebar/site-mark" . }}
|
||||||
{{ $lunr := resources.Get "js/lunr.min.js" | fingerprint }}
|
{{ $lunr := resources.Get "js/lunr.min.js" | fingerprint }}
|
||||||
|
<script defer src="{{ $lunr.RelPermalink }}"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
{{ if .Site.IsMultiLingual }}
|
{{ if .Site.IsMultiLingual }}
|
||||||
|
@ -20,9 +21,8 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
var baseurl = "{{.Site.BaseURL}}";
|
var baseurl = "{{.Site.BaseURL}}";
|
||||||
{{ end }}
|
{{ end }}
|
||||||
fetchInject([
|
|
||||||
"{{ $lunr.RelPermalink }}",
|
|
||||||
]).then(() => {
|
|
||||||
var lunrIndex = null;
|
var lunrIndex = null;
|
||||||
var pagesIndex = null;
|
var pagesIndex = null;
|
||||||
var searchResults = null;
|
var searchResults = null;
|
||||||
|
@ -142,7 +142,5 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in New Issue