This commit is contained in:
zzossig 2019-11-05 18:57:50 +09:00
parent 583846cbdb
commit 5ae2574a6b
4 changed files with 7 additions and 7 deletions

View File

@ -116,7 +116,7 @@
}
.copy-to-clipboard {
background-image: url(/images/clippy.svg);
background-image: url(images/clippy.svg);
background-position: 50% 50%;
background-size: 16px 16px;
background-repeat: no-repeat;

View File

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

View File

@ -77,7 +77,7 @@
{{ $photoSwipeSkin := resources.Get "css/photoswipe/custom-skin.css" | minify }}
<link rel="stylesheet" href="{{ $photoSwipeSkin.RelPermalink }}">
<script defer>
<script>
var pswpElement = $('.pswp')[0];
var imgElements = $('.single__contents').find('img');
var items = [];
@ -88,10 +88,10 @@
});
$(this).css('cursor', 'pointer');
items.push({
src: v.src,
src: v['data-src'] | v['src'],
w: 0,
h: 0,
title: filename(v.src),
title: filename(v['data-src'] | v['src']),
});
});

File diff suppressed because one or more lines are too long