mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-06-18 20:13:31 +08:00
feat-add-meting.js-support
This commit is contained in:
parent
67d5156507
commit
4f55adcbb0
23
layouts/shortcodes/meting.html
Normal file
23
layouts/shortcodes/meting.html
Normal file
@ -0,0 +1,23 @@
|
||||
{{ $server := (.Get "server") }}
|
||||
{{ $type := (.Get "type") }}
|
||||
{{ $id := (.Get "id") }}
|
||||
{{ $autoplay := or (.Get "autoplay") false }}
|
||||
{{ $theme := or (.Get "theme") "#2980b9" }}
|
||||
{{ $fixed := or (.Get "fixed") false }}
|
||||
{{ $mini := or (.Get "mini") false }}
|
||||
{{ $loop := or (.Get "loop") false }}
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/meting@2.0.1/dist/Meting.min.js"></script>
|
||||
<meting-js
|
||||
server="{{ $server }}"
|
||||
type="{{ $type }}"
|
||||
id="{{ $id }}"
|
||||
autoplay="{{ $autoplay }}"
|
||||
theme="{{ $theme }}"
|
||||
fixed="{{ $fixed }}"
|
||||
mini="{{ $mini }}"
|
||||
loop="{{ $loop }}"
|
||||
>
|
||||
</meting-js>
|
Loading…
Reference in New Issue
Block a user