1
0
Fork 0
mirror of https://github.com/dillonzq/LoveIt.git synced 2025-04-05 13:40:59 +02:00

fix(music): fix music shortcode

This commit is contained in:
Dillon 2020-02-04 01:55:24 +08:00
parent d8854c7e47
commit 097473ef2a
6 changed files with 32 additions and 26 deletions

View file

@ -70,6 +70,17 @@
}
}
.copyright {
.copyright-line {
.icp-splitter {
display: none;
}
.icp-br {
display: block;
}
}
}
.dynamic-to-top {
display: none !important;
}

View file

@ -4,6 +4,10 @@
.copyright-line {
width: 100%;
.icp-br {
display: none;
}
}
}

View file

@ -21,15 +21,16 @@
<span class="author" itemprop="copyrightHolder">&nbsp;<a href="{{ $.Site.Author.link | default $.Site.BaseURL }}" target="_blank">{{ . }}</a></span>
{{- end -}}
{{- /* ICP */ -}}
{{- with .Site.Params.icp -}}
&nbsp;|&nbsp;<span class="icp">{{ . | safeHTML }}</span>
{{- end -}}
{{- /* License */ -}}
{{- with .Site.Params.license -}}
&nbsp;|&nbsp;<span class="license">{{ . | safeHTML }}</span>
{{- end -}}
{{- /* ICP */ -}}
{{- with .Site.Params.icp -}}
<span class="icp-splitter">&nbsp;|&nbsp;</span><br class="icp-br"/>
<span class="icp">{{ . | safeHTML }}</span>
{{- end -}}
</div>
</div>
</footer>

View file

@ -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 }}
<meting-js server="{{ .Get 0 }}" type="{{ .Get 1 }}" id="{{ .Get 2 }}" theme="#A9A9B3"></meting-js>
{{- end -}}

File diff suppressed because one or more lines are too long