feat: add local video support

Support single video moment, like WeChat friend cycle.
Just use the `video` key
This commit is contained in:
atompi 2023-03-07 20:00:35 +08:00
parent 69f23442e8
commit c8145dba79
3 changed files with 16 additions and 4 deletions

View file

@ -14,13 +14,16 @@
<!-- fancybox -->
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.js"></script>
<!-- videojs -->
<script src="https://vjs.zencdn.net/8.0.4/video.min.js"></script>
{{/* a pangu support */}}
{{ if .Site.Params.features.pangu }}
<!-- pangu.js -->
<script>
pangu.spacingElementByClassName('moment-note');
pangu.spacingElementByClassName('context');
document.addEventListener('DOMContentLoaded', () => {
// listen to any DOM change and automatically perform spacing via MutationObserver()
pangu.autoSpacingPage();