From 4f2bdfee5f78e5cc92a2852ba875d5800fbc077c Mon Sep 17 00:00:00 2001 From: zzossig Date: Tue, 5 Nov 2019 17:22:56 +0900 Subject: [PATCH] re --- assets/js/fetch-inject.umd.min.js | 2 -- layouts/_default/summary.html | 6 +++--- layouts/gallery/single.html | 2 +- layouts/partials/body/perfectscrollbar.html | 4 ++-- layouts/partials/body/photoswipe.html | 8 ++++---- layouts/partials/sidebar/sidebar-single.html | 2 +- 6 files changed, 11 insertions(+), 13 deletions(-) delete mode 100644 assets/js/fetch-inject.umd.min.js diff --git a/assets/js/fetch-inject.umd.min.js b/assets/js/fetch-inject.umd.min.js deleted file mode 100644 index fba61c0..0000000 --- a/assets/js/fetch-inject.umd.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! Fetch Inject v2.0.4 | Copyright (C) Josh Habdas (https://habd.as) | @license Zlib */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).fetchInject=t()}(this,function(){"use strict";const e=function(e,t,n,r,o,c,i){c=t.createElement(n),i=t.getElementsByTagName(n)[0],c.appendChild(t.createTextNode(r.text)),c.onload=o(r),i?i.parentNode.insertBefore(c,i):t.head.appendChild(c)};return function(t,n){if(!arguments.length)return Promise.reject(new ReferenceError("Failed to execute 'fetchInject': 1 argument required but only 0 present."));if(arguments[0]&&arguments[0].constructor!==Array)return Promise.reject(new TypeError("Failed to execute 'fetchInject': argument 1 must be of type 'Array'."));if(arguments[1]&&arguments[1].constructor!==Promise)return Promise.reject(new TypeError("Failed to execute 'fetchInject': argument 2 must be of type 'Promise'."));const r=[],o=n?[].concat(n):[],c=[];return t.forEach(e=>o.push(window.fetch(e).then(e=>[e.clone().text(),e.blob()]).then(e=>Promise.all(e).then(e=>{r.push({text:e[0],blob:e[1]})})))),Promise.all(o).then(()=>(r.forEach(t=>{c.push({then:n=>{t.blob.type.includes("text/css")?e(window,document,"style",t,n):e(window,document,"script",t,n)}})}),Promise.all(c)))}}); \ No newline at end of file diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index d26eb2a..b83708c 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -16,15 +16,15 @@ {{ if $params.featured_image }}
{{ with (print "/images/" $params.featured_image) }} - {{ print $params.featured_image }} + {{ print $params.featured_image }} {{ end }}
{{ else if $params.featured_video }} {{ with (print "/videos/poster/" $params.featured_video_poster) }}
-
diff --git a/layouts/partials/body/perfectscrollbar.html b/layouts/partials/body/perfectscrollbar.html index 7a9c9ca..31a7a30 100644 --- a/layouts/partials/body/perfectscrollbar.html +++ b/layouts/partials/body/perfectscrollbar.html @@ -1,9 +1,9 @@ {{ if $.Param "enableCustomScrollbar" }} {{ $customscrollbar := resources.Get `js/perfect-scrollbar.jquery.min.js` | fingerprint }} - + {{ $customScrollbarStyle := resources.Get "css/perfect-scrollbar.min.css" }} - + + {{ $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" }} - + +