Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-02-03 20:55:24 +0300
committerDillon <dillonzq@outlook.com>2020-02-03 20:55:24 +0300
commit097473ef2ad2f2a7029d3bc9e606d54dccca2da9 (patch)
treeab833477e6dad5c10dca8d11f3e5d2b0b15afe1d /layouts/shortcodes
parentd8854c7e4784fc924a4995923f200782a192ae8e (diff)
fix(music): fix music shortcode
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/music.html28
1 files changed, 9 insertions, 19 deletions
diff --git a/layouts/shortcodes/music.html b/layouts/shortcodes/music.html
index d4a99a8..b70d664 100644
--- a/layouts/shortcodes/music.html
+++ b/layouts/shortcodes/music.html
@@ -1,22 +1,12 @@
{{- .Page.Scratch.Set "music" "true" -}}
{{- if .IsNamedParams -}}
- <meting-js server={{ .Get "server" }} type={{ .Get "type" }} id={{ .Get "id" }}
- {{- with .Get "autoplay" -}}
- autoplay={{ . }}
- {{- end -}}
- {{- with .Get "mini" -}}
- mini={{ . }}
- {{- end -}}
- {{- with .Get "fixed" -}}
- fixed={{ . }}
- {{- end -}}
- {{- with .Get "list-folded" -}}
- list-folded={{ . }}
- {{- end -}}
- {{- with .Get "list-max-height" -}}
- list-max-height={{ . }}
- {{- end -}}
- theme="#A9A9B3"></meting-js>
+ <meting-js server="{{ .Get "server" }}" type="{{ .Get "type" }}" id="{{ .Get "id" }}" theme="#A9A9B3"
+ {{- with .Get "autoplay" }} autoplay="{{ . }}"{{ end -}}
+ {{- with .Get "mini" }} mini="{{ . }}"{{ end -}}
+ {{- with .Get "fixed" }} fixed="{{ . }}"{{ end -}}
+ {{- with .Get "list-folded" }} list-folded="{{ . }}"{{ end -}}
+ {{- with .Get "list-max-height" }} list-max-height="{{ . }}"{{ end -}}
+ ></meting-js>
{{- else -}}
- <meting-js server={{ .Get 0 }} type={{ .Get 1 }} id={{ .Get 2 }} theme="#A9A9B3"></meting-js>></meting-js>
-{{- end }} \ No newline at end of file
+ <meting-js server="{{ .Get 0 }}" type="{{ .Get 1 }}" id="{{ .Get 2 }}" theme="#A9A9B3"></meting-js>
+{{- end -}} \ No newline at end of file