summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-08-10 08:38:38 +0800
committereltrac <hi@eltr.ac>2026-08-10 08:38:38 +0800
commit5cafc753c1ff2fe0d736b6034a66fb759c8c7faf (patch)
tree3dea57fb6dd26576433e9ec22667c574d465d1fa
parent94107d2d1286102bbd62be4ac3c5de64de8ce6f4 (diff)
feat(shortcode/music): support Internet Archive button
-rw-r--r--i18n/en.toml1
-rw-r--r--i18n/zh.toml1
-rw-r--r--layouts/_shortcodes/music.html2
-rw-r--r--static/icons/music/archive.pngbin0 -> 2999 bytes
4 files changed, 3 insertions, 1 deletions
diff --git a/i18n/en.toml b/i18n/en.toml
index 5723e57..4ee9ce1 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -89,6 +89,7 @@ tidal = "TIDAL"
neodb = "NeoDB"
lucida = "Lucida"
album = "ALBUM"
+archive = "Internet Archive"
openIn = "Open in {{ . }}"
[interact]
diff --git a/i18n/zh.toml b/i18n/zh.toml
index 56485be..09885b9 100644
--- a/i18n/zh.toml
+++ b/i18n/zh.toml
@@ -90,6 +90,7 @@ spotify = "Spotify"
tidal = "TIDAL"
neodb = "NeoDB"
lucida = "Lucida"
+archive = "Internet Archive"
album = "专辑"
openIn = "在 {{ . }} 中打开"
diff --git a/layouts/_shortcodes/music.html b/layouts/_shortcodes/music.html
index 81e690d..98e6531 100644
--- a/layouts/_shortcodes/music.html
+++ b/layouts/_shortcodes/music.html
@@ -3,7 +3,7 @@
{{ $artist := .Get "artist" }}
{{ $isAlbum := .Get "album" }}
-{{ $platforms := slice "bandcamp" "apple" "spotify" "netease" "tidal" "neodb" "lucida" }}
+{{ $platforms := slice "bandcamp" "apple" "spotify" "netease" "tidal" "neodb" "lucida" "archive" }}
{{ $page := . }}
<div class="flex flex-col md:flex-row md:justify-between md:items-center gap-2">
diff --git a/static/icons/music/archive.png b/static/icons/music/archive.png
new file mode 100644
index 0000000..75849e3
--- /dev/null
+++ b/static/icons/music/archive.png
Binary files differ