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 { .dynamic-to-top {
display: none !important; display: none !important;
} }

View File

@@ -4,6 +4,10 @@
.copyright-line { .copyright-line {
width: 100%; 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> <span class="author" itemprop="copyrightHolder">&nbsp;<a href="{{ $.Site.Author.link | default $.Site.BaseURL }}" target="_blank">{{ . }}</a></span>
{{- end -}} {{- end -}}
{{- /* ICP */ -}}
{{- with .Site.Params.icp -}}
&nbsp;|&nbsp;<span class="icp">{{ . | safeHTML }}</span>
{{- end -}}
{{- /* License */ -}} {{- /* License */ -}}
{{- with .Site.Params.license -}} {{- with .Site.Params.license -}}
&nbsp;|&nbsp;<span class="license">{{ . | safeHTML }}</span> &nbsp;|&nbsp;<span class="license">{{ . | safeHTML }}</span>
{{- end -}} {{- 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>
</div> </div>
</footer> </footer>

View File

@@ -1,22 +1,12 @@
{{- .Page.Scratch.Set "music" "true" -}} {{- .Page.Scratch.Set "music" "true" -}}
{{- if .IsNamedParams -}} {{- if .IsNamedParams -}}
<meting-js server={{ .Get "server" }} type={{ .Get "type" }} id={{ .Get "id" }} <meting-js server="{{ .Get "server" }}" type="{{ .Get "type" }}" id="{{ .Get "id" }}" theme="#A9A9B3"
{{- with .Get "autoplay" -}} {{- with .Get "autoplay" }} autoplay="{{ . }}"{{ end -}}
autoplay={{ . }} {{- with .Get "mini" }} mini="{{ . }}"{{ end -}}
{{- end -}} {{- with .Get "fixed" }} fixed="{{ . }}"{{ end -}}
{{- with .Get "mini" -}} {{- with .Get "list-folded" }} list-folded="{{ . }}"{{ end -}}
mini={{ . }} {{- with .Get "list-max-height" }} list-max-height="{{ . }}"{{ end -}}
{{- end -}} ></meting-js>
{{- 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>
{{- else -}} {{- else -}}
<meting-js server={{ .Get 0 }} type={{ .Get 1 }} id={{ .Get 2 }} theme="#A9A9B3"></meting-js>></meting-js> <meting-js server="{{ .Get 0 }}" type="{{ .Get 1 }}" id="{{ .Get 2 }}" theme="#A9A9B3"></meting-js>
{{- end }} {{- end -}}

File diff suppressed because one or more lines are too long