This commit is contained in:
zzossig 2019-11-05 17:59:17 +09:00
parent c3e85754a3
commit bb23d03b35
6 changed files with 12 additions and 12 deletions

View File

@ -20,9 +20,9 @@
{{ partial "body/photoswipe" . }} {{ partial "body/photoswipe" . }}
{{ $masonry := resources.Get `js/masonry.pkgd.min.js` | resources.Fingerprint }} {{ $masonry := resources.Get `js/masonry.pkgd.min.js` | resources.Fingerprint }}
<script defer src="{{ $masonry.RelPermalink }}"></script> <script src="{{ $masonry.RelPermalink }}"></script>
{{ $imagesloaded := resources.Get `js/imagesloaded.pkgd.min.js` | resources.Fingerprint }} {{ $imagesloaded := resources.Get `js/imagesloaded.pkgd.min.js` | resources.Fingerprint }}
<script defer src="{{ $imagesloaded.RelPermalink }}"></script> <script src="{{ $imagesloaded.RelPermalink }}"></script>
<script> <script>
var $grid = $('.grid').masonry({ var $grid = $('.grid').masonry({

View File

@ -1,11 +1,11 @@
{{ if $.Param "enableCustomScrollbar" }} {{ if $.Param "enableCustomScrollbar" }}
{{ $customscrollbar := resources.Get `js/perfect-scrollbar.jquery.min.js` | resources.Fingerprint }} {{ $customscrollbar := resources.Get `js/perfect-scrollbar.jquery.min.js` | resources.Fingerprint }}
<script defer src="{{ $customscrollbar.RelPermalink }}"></script> <script 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 src="{{ $customScrollbarStyle.RelPermalink }}"></script>
<script defer> <script>
var pre = $('pre'); var pre = $('pre');
pre.perfectScrollbar(); pre.perfectScrollbar();
</script> </script>

View File

@ -1,5 +1,7 @@
{{ $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>
{{ $clipboard := resources.Get "js/clipboard.min.js" | resources.Fingerprint }}
<script src="{{ $clipboard.RelPermalink }}"></script>
{{ $enquire := resources.Get "js/enquire.min.js" | resources.Fingerprint }} {{ $enquire := resources.Get "js/enquire.min.js" | resources.Fingerprint }}
<script defer src="{{ $enquire.RelPermalink }}"></script> <script defer src="{{ $enquire.RelPermalink }}"></script>
{{ $prism := resources.Get "js/prism.min.js" | minify | resources.Fingerprint }} {{ $prism := resources.Get "js/prism.min.js" | minify | resources.Fingerprint }}
@ -8,9 +10,7 @@
<script defer src="{{ $lunr.RelPermalink }}"></script> <script defer src="{{ $lunr.RelPermalink }}"></script>
{{ $lazysizes := resources.Get "js/lazysizes.min.js" | resources.Fingerprint }} {{ $lazysizes := resources.Get "js/lazysizes.min.js" | resources.Fingerprint }}
<script defer src="{{ $lazysizes.RelPermalink }}"></script> <script defer src="{{ $lazysizes.RelPermalink }}"></script>
{{ $clipboard := resources.Get "js/clipboard.min.js" | resources.Fingerprint }}
<script defer src="{{ $clipboard.RelPermalink }}"></script>
{{ $shave := resources.Get "js/jquery.shave.min.js" | resources.Fingerprint }} {{ $shave := resources.Get "js/jquery.shave.min.js" | resources.Fingerprint }}
<script defer src="{{ $shave.RelPermalink }}"></script> <script defer src="{{ $shave.RelPermalink }}"></script>
{{ $zzo := resources.Get "js/zzo.js" | minify | resources.Fingerprint }} {{ $zzo := resources.Get "js/zzo.js" | minify | resources.Fingerprint }}
<script defer src="{{ $zzo.RelPermalink }}"></script> <script defer src="{{ $zzo.RelPermalink }}"></script>

View File

@ -8,9 +8,9 @@
</div> </div>
{{ $toc := resources.Get `js/jquery.toc.min.js` | resources.Fingerprint }} {{ $toc := resources.Get `js/jquery.toc.min.js` | resources.Fingerprint }}
<script defer src="{{ $toc.RelPermalink }}"></script> <script src="{{ $toc.RelPermalink }}"></script>
<script defer> <script>
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" });

View File

@ -1,6 +1,6 @@
{{ if $.Param "enableMark" }} {{ if $.Param "enableMark" }}
{{ $mark := resources.Get "js/jquery.mark.min.js" | resources.Fingerprint }} {{ $mark := resources.Get "js/jquery.mark.min.js" | resources.Fingerprint }}
<script defer src="{{ $mark.RelPermalink }}"></script> <script src="{{ $mark.RelPermalink }}"></script>
<script> <script>
var mark = function () { var mark = function () {

View File

@ -13,7 +13,7 @@
{{ partial "sidebar/site-mark" . }} {{ partial "sidebar/site-mark" . }}
{{ $lunr := resources.Get "js/lunr.min.js" | resources.Fingerprint }} {{ $lunr := resources.Get "js/lunr.min.js" | resources.Fingerprint }}
<script defer src="{{ $lunr.RelPermalink }}"></script> <script src="{{ $lunr.RelPermalink }}"></script>
<script> <script>
{{ if .Site.IsMultiLingual }} {{ if .Site.IsMultiLingual }}