Remove MetingJS

This commit is contained in:
Jimmy Cai 2021-02-13 09:44:16 +01:00
parent 88187e24d2
commit 402de343d5
No known key found for this signature in database
GPG Key ID: 3EA408E527F37B18
3 changed files with 0 additions and 41 deletions

View File

@ -1,18 +1,8 @@
<article class="{{ if .Params.image }}has-image {{ end }}main-article">
{{ 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" . }}
{{ if or ( eq .Params.audio.p "after") ( eq .Params.audio.p "fixed" ) }}
{{ partial "article/components/audio" . }}
{{ end }}
{{ partial "article/components/footer" . }}
{{ if or .Params.math .Site.Params.article.math }}

View File

@ -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>

View File

@ -32,11 +32,4 @@
{{ end }}
{{ 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>