mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 22:16:07 +01:00
11 lines
870 B
HTML
11 lines
870 B
HTML
{{- $displayArtist := (.Get "artist") }}
|
|
{{- $displayTitle := (.Get "title") }}
|
|
{{- $songwhip := printf "https://songwhip.com/%s/%s" (partial "kebab.txt" $displayArtist) (partial "kebab.txt" $displayTitle) -}}
|
|
{{- with .Get "url" }}{{ $songwhip = . }}{{ end -}}
|
|
<figure class="embed audio soundcloud">
|
|
<iframe src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com{{ .Get "path" }}&auto_play=false&hide_related=true&show_comments=false&show_user=false&show_reposts=false&show_teaser=false&visual=false" loading="lazy" scrolling="no" frameborder="no" allow="autoplay"></iframe>
|
|
<figcaption>
|
|
🎶 {{ $displayArtist }}{{ with $displayTitle }}{{ if $displayArtist }}: {{ end }}<em>{{ . }}</em>{{ end }}
|
|
{{ with $songwhip }}<br/><a href="{{ . }}" target="_blank" style="font-style:italic;">Listen elsewhere</a>{{ end }}
|
|
</figcaption>
|
|
</figure>
|