Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
fix(music): fix music shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Feb 3, 2020
1 parent d8854c7 commit 097473e
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 26 deletions.
11 changes: 11 additions & 0 deletions assets/css/_core/_media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@
}
}

.copyright {
.copyright-line {
.icp-splitter {
display: none;
}
.icp-br {
display: block;
}
}
}

.dynamic-to-top {
display: none !important;
}
Expand Down
4 changes: 4 additions & 0 deletions assets/css/_partial/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

.copyright-line {
width: 100%;

.icp-br {
display: none;
}
}
}

Expand Down
11 changes: 6 additions & 5 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
28 changes: 9 additions & 19 deletions layouts/shortcodes/music.html
Original file line number Diff line number Diff line change
@@ -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 -}}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 097473e

Please sign in to comment.