mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 12:03:31 +08:00
Remove MetingJS
This commit is contained in:
parent
88187e24d2
commit
402de343d5
@ -1,18 +1,8 @@
|
|||||||
<article class="{{ if .Params.image }}has-image {{ end }}main-article">
|
<article class="{{ if .Params.image }}has-image {{ end }}main-article">
|
||||||
{{ partial "article/components/header" . }}
|
{{ partial "article/components/header" . }}
|
||||||
|
|
||||||
{{ if .Params.audio }}
|
|
||||||
{{ if or ( eq .Params.audio.p "before" ) ( not .Params.audio.p ) }}
|
|
||||||
{{ partial "article/components/audio" . }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ partial "article/components/content" . }}
|
{{ partial "article/components/content" . }}
|
||||||
|
|
||||||
{{ if or ( eq .Params.audio.p "after") ( eq .Params.audio.p "fixed" ) }}
|
|
||||||
{{ partial "article/components/audio" . }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ partial "article/components/footer" . }}
|
{{ partial "article/components/footer" . }}
|
||||||
|
|
||||||
{{ if or .Params.math .Site.Params.article.math }}
|
{{ if or .Params.math .Site.Params.article.math }}
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
<div style="margin: 20px;">
|
|
||||||
<meting-js style="margin: 10px;"
|
|
||||||
name="{{ .Params.audio.name }}"
|
|
||||||
artist="{{ .Params.audio.artist }}"
|
|
||||||
url="{{ .Params.audio.url }}"
|
|
||||||
{{ if .Params.audio.cover }}
|
|
||||||
cover="{{ .Params.audio.cover }}"
|
|
||||||
{{ else }}
|
|
||||||
cover="/images/logo.png"
|
|
||||||
{{ end }}
|
|
||||||
fixed="{{ eq .Params.audio.p "fixed" }}"
|
|
||||||
server="{{ .Params.audio.server }}"
|
|
||||||
type="{{ .Params.audio.type }}"
|
|
||||||
id="{{ .Params.audio.id }}"
|
|
||||||
autoplay="true"
|
|
||||||
loop="all"
|
|
||||||
order="list"
|
|
||||||
preload="auto"
|
|
||||||
list-folded="true"
|
|
||||||
list-max-height="500px"
|
|
||||||
theme="#999999"
|
|
||||||
lrc-type="1">
|
|
||||||
</meting-js>
|
|
||||||
</div>
|
|
@ -32,11 +32,4 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partialCached "article/components/details" . .RelPermalink }}
|
{{ partialCached "article/components/details" . .RelPermalink }}
|
||||||
|
|
||||||
{{ if .Params.audio }}
|
|
||||||
<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>
|
|
||||||
<!-- require MetingJS -->
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/meting@2.0.1/dist/Meting.min.js"></script>
|
|
||||||
{{ end }}
|
|
||||||
</header>
|
</header>
|
Loading…
Reference in New Issue
Block a user