From 68dcd093644c03dea2100eb5150b59b6a3ee63e6 Mon Sep 17 00:00:00 2001 From: zzossig Date: Tue, 5 Nov 2019 17:11:56 +0900 Subject: [PATCH] re --- layouts/gallery/single.html | 132 ++++++------ layouts/partials/body/perfectscrollbar.html | 11 +- layouts/partials/body/photoswipe.html | 83 ++++---- layouts/partials/head/scripts.html | 2 - layouts/partials/sidebar/sidebar-single.html | 161 +++++++------- layouts/partials/sidebar/site-mark.html | 63 +++--- layouts/partials/sidebar/site-search.html | 212 +++++++++---------- 7 files changed, 321 insertions(+), 343 deletions(-) diff --git a/layouts/gallery/single.html b/layouts/gallery/single.html index 141c876..6a6fc56 100644 --- a/layouts/gallery/single.html +++ b/layouts/gallery/single.html @@ -20,79 +20,73 @@ {{ partial "body/photoswipe" . }} {{ $masonry := resources.Get `js/masonry.pkgd.min.js` | fingerprint }} -{{ $enquire := resources.Get `js/enquire.min.js` | fingerprint }} + {{ $imagesloaded := resources.Get `js/imagesloaded.pkgd.min.js` | fingerprint }} + {{ end }} \ No newline at end of file diff --git a/layouts/partials/body/perfectscrollbar.html b/layouts/partials/body/perfectscrollbar.html index 622b54e..7a9c9ca 100644 --- a/layouts/partials/body/perfectscrollbar.html +++ b/layouts/partials/body/perfectscrollbar.html @@ -1,15 +1,12 @@ {{ if $.Param "enableCustomScrollbar" }} {{ $customscrollbar := resources.Get `js/perfect-scrollbar.jquery.min.js` | fingerprint }} + {{ $customScrollbarStyle := resources.Get "css/perfect-scrollbar.min.css" }} + {{ end }} \ No newline at end of file diff --git a/layouts/partials/body/photoswipe.html b/layouts/partials/body/photoswipe.html index 03f582d..44ccf29 100644 --- a/layouts/partials/body/photoswipe.html +++ b/layouts/partials/body/photoswipe.html @@ -68,58 +68,55 @@ {{ $photoSwipe := resources.Get `js/photoswipe.min.js` | fingerprint }} + {{ $photoSwipeUi := resources.Get `js/photoswipe-ui-default.min.js` | fingerprint }} + {{ $photoSwipeStyle := resources.Get "css/photoswipe/photoswipe.css" }} + {{ $photoSwipeSkin := resources.Get "css/photoswipe/custom-skin.css" }} + {{ end }} \ No newline at end of file diff --git a/layouts/partials/head/scripts.html b/layouts/partials/head/scripts.html index b567b3c..c1c4f2e 100644 --- a/layouts/partials/head/scripts.html +++ b/layouts/partials/head/scripts.html @@ -1,5 +1,3 @@ -{{ $fetchinject := resources.Get "js/fetch-inject.umd.min.js" | resources.Fingerprint }} - {{ $jquery := resources.Get "js/jquery.min.js" | resources.Fingerprint }} {{ $enquire := resources.Get "js/enquire.min.js" | resources.Fingerprint }} diff --git a/layouts/partials/sidebar/sidebar-single.html b/layouts/partials/sidebar/sidebar-single.html index afef5d6..e11a3d1 100644 --- a/layouts/partials/sidebar/sidebar-single.html +++ b/layouts/partials/sidebar/sidebar-single.html @@ -8,104 +8,101 @@ {{ $toc := resources.Get `js/jquery.toc.min.js` | fingerprint }} + {{ end }} \ No newline at end of file diff --git a/layouts/partials/sidebar/site-mark.html b/layouts/partials/sidebar/site-mark.html index 230dac9..c9463ab 100644 --- a/layouts/partials/sidebar/site-mark.html +++ b/layouts/partials/sidebar/site-mark.html @@ -1,41 +1,38 @@ {{ if $.Param "enableMark" }} {{ $mark := resources.Get "js/jquery.mark.min.js" | fingerprint }} + {{ end }} \ No newline at end of file diff --git a/layouts/partials/sidebar/site-search.html b/layouts/partials/sidebar/site-search.html index f87bab1..97a2697 100644 --- a/layouts/partials/sidebar/site-search.html +++ b/layouts/partials/sidebar/site-search.html @@ -13,6 +13,7 @@ {{ partial "sidebar/site-mark" . }} {{ $lunr := resources.Get "js/lunr.min.js" | fingerprint }} + {{ end }} \ No newline at end of file