mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-08 17:15:56 +01:00
5 lines
341 B
Text
5 lines
341 B
Text
{{- $displayArtist := (.Get "composer") | default (.Get "artist") -}}
|
|
{{- $displayTitle := (.Get "title") | default (.Get "album") -}}
|
|
{{- $url := partial "songlink.url" (printf "https://open.spotify.com%s" (.Get "path")) -}}
|
|
|
|
=> {{ $url }} 🎵 {{ $displayArtist }}{{ with $displayTitle }}{{ if $displayArtist }}: {{ end }}{{ . }}{{ end }}
|