IMPROVEMENT: video js support

This commit is contained in:
FarseaSH 2024-01-02 21:55:28 +08:00
parent ab4dc72cbd
commit b51aa2f4a9
3 changed files with 6 additions and 6 deletions

View file

@ -90,11 +90,11 @@
{{ end }}
{{ end }}
{{ $video_caption := $page.Plain}}
{{/* EXPERIMENTAL video support */}}
{{ with $page.Params.video }}
<a data-src="{{ . }}" data-fancybox="video-gallery" data-caption={{ $video_caption }}>
<video class="video-js" src="{{ . }}"></video>
</a>
<video class="video-js" controls preload="auto" width="320" height="200" data-setup="{}" style="margin-bottom: 10px;">
<source src="{{ . }}"/>
</video>
{{ end }}
{{ if (eq (len $pictures_set) 1) }}