mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 01:35:56 +01:00
Fix Gemini Music references
Some checks failed
Some checks failed
This commit is contained in:
parent
29199c7c55
commit
9589c224cc
2 changed files with 8 additions and 1 deletions
7
layouts/shortcodes/music.gmi
Normal file
7
layouts/shortcodes/music.gmi
Normal file
|
@ -0,0 +1,7 @@
|
|||
{{- $data := (index site.Data.music.musicbrainz (.Get 0)) -}}
|
||||
{{- with $data -}}
|
||||
{{- $displayArtist := .composer | default .artist -}}
|
||||
{{- $displayTitle := .title | default .album -}}
|
||||
|
||||
=> {{ .musicbrainz }} 🎵 {{ $displayArtist }}{{ with $displayTitle }}{{ if $displayArtist }}: {{ end }}{{ . }}{{ end }}
|
||||
{{ end -}}
|
2
todo.md
2
todo.md
|
@ -30,7 +30,7 @@ Things I might work on within my personal blog's software.
|
|||
- [ ] Import Facebook posts
|
||||
- [ ] Songwhip is dead 😭 replace with something else
|
||||
- [x] Approach complete. Use Musicbrainz
|
||||
- Annoyingly soundcloud URLs don't include the data needed to create an embed, so have to add that manually
|
||||
- Annoyingly soundcloud URLs don't include the data needed to create an embed, so have to add that manually. Perhaps this will help? https://developers.soundcloud.com/docs/oembed#introduction
|
||||
- [ ] Auto-import from UUID [using release IDs](https://musicbrainz.org/ws/2/recording/013efa85-b7f5-4f95-809b-ff47c53726a9?inc=artist-credits%20artist-rels%20url-rels&fmt=json) — more complex to get composer info (eg. [here](https://musicbrainz.org/ws/2/recording/bfbd2167-db3a-469a-a0a3-3fdeacbd4344?inc=artist-credits%20artist-rels%20url-rels%20work-rels%20work-level-rels&fmt=json))
|
||||
- `composer: .relations[type=performance].work.relations[type=composer].name`
|
||||
- `title: .title` (Or album, if path is `/release` not `/recording`)
|
||||
|
|
Loading…
Reference in a new issue