mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-06-18 20:13:31 +08:00
24 lines
778 B
HTML
24 lines
778 B
HTML
{{ $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>
|