This commit is contained in:
zzossig 2019-11-05 18:44:35 +09:00
parent 126c5f48e4
commit 583846cbdb
10 changed files with 11 additions and 9 deletions

View File

@ -20,10 +20,10 @@
{{ end }}
</div>
{{ else if $params.featured_video }}
{{ with (print "videos/poster/" $params.featured_video_poster) }}
{{ with (print "videos/poster/" $params.featured_video_poster | relURL) }}
<div class="video">
<video class='video-js' controls preload='none' poster='{{ print (. | relURL) }}' data-setup='{"fluid": true}'>
{{ with (print "videos/" $params.featured_video) }}
<video class='video-js' controls preload='none' poster='{{ . }}' data-setup='{"fluid": true}'>
{{ with (print "videos/" $params.featured_video | relURL) }}
<source src="{{ . | relURL }}" type='video/mp4'>
{{ end }}
<p class='vjs-no-js'>

View File

@ -2,8 +2,9 @@
{{ $customscrollbar := resources.Get `js/perfect-scrollbar.jquery.min.js` | resources.Fingerprint }}
<script defer src="{{ $customscrollbar.RelPermalink }}"></script>
{{ $customScrollbarStyle := resources.Get "css/perfect-scrollbar.min.css" }}
<script defer src="{{ $customScrollbarStyle.RelPermalink }}"></script>
{{ $customScrollbarStyle := resources.Get "css/perfect-scrollbar.min.css" | minify }}
<link rel="stylesheet" href="{{ $customScrollbarStyle.RelPermalink }}">
<script>
$(document).ready(function () {

View File

@ -71,10 +71,11 @@
<script defer src="{{ $photoSwipe.RelPermalink }}"></script>
{{ $photoSwipeUi := resources.Get `js/photoswipe-ui-default.min.js` | resources.Fingerprint }}
<script defer src="{{ $photoSwipeUi.RelPermalink }}"></script>
{{ $photoSwipeStyle := resources.Get "css/photoswipe/photoswipe.css" | resources.Fingerprint }}
<script defer src="{{ $photoSwipeStyle.RelPermalink }}"></script>
{{ $photoSwipeSkin := resources.Get "css/photoswipe/custom-skin.css" | resources.Fingerprint }}
<script defer src="{{ $photoSwipeSkin.RelPermalink }}"></script>
{{ $photoSwipeStyle := resources.Get "css/photoswipe/photoswipe.css" | minify }}
<link rel="stylesheet" href="{{ $photoSwipeStyle.RelPermalink }}">
{{ $photoSwipeSkin := resources.Get "css/photoswipe/custom-skin.css" | minify }}
<link rel="stylesheet" href="{{ $photoSwipeSkin.RelPermalink }}">
<script defer>
var pswpElement = $('.pswp')[0];

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB