LoveIt/layouts/shortcodes/music.html

22 lines
694 B
HTML
Raw Normal View History

2020-01-31 15:53:04 +01:00
{{- .Page.Scratch.Set "music" "true" -}}
{{- if .IsNamedParams -}}
2019-08-08 19:54:09 +02:00
<meting-js server={{ .Get "server" }} type={{ .Get "type" }} id={{ .Get "id" }}
2020-01-31 15:53:04 +01:00
{{- with .Get "autoplay" -}}
2019-08-08 19:54:09 +02:00
autoplay={{ . }}
2020-01-31 15:53:04 +01:00
{{- end -}}
{{- with .Get "mini" -}}
2019-08-08 19:54:09 +02:00
mini={{ . }}
2020-01-31 15:53:04 +01:00
{{- end -}}
{{- with .Get "fixed" -}}
2019-08-08 19:54:09 +02:00
fixed={{ . }}
2020-01-31 15:53:04 +01:00
{{- end -}}
{{- with .Get "list-folded" -}}
2019-08-08 19:54:09 +02:00
list-folded={{ . }}
2020-01-31 15:53:04 +01:00
{{- end -}}
{{- with .Get "list-max-height" -}}
2019-08-08 19:54:09 +02:00
list-max-height={{ . }}
2020-01-31 15:53:04 +01:00
{{- end -}}
2019-08-08 19:54:09 +02:00
theme="#A9A9B3"></meting-js>
2020-01-31 15:53:04 +01:00
{{- else -}}
2019-08-08 19:54:09 +02:00
<meting-js server={{ .Get 0 }} type={{ .Get 1 }} id={{ .Get 2 }} theme="#A9A9B3"></meting-js>></meting-js>
2020-01-31 15:53:04 +01:00
{{- end }}