diff --git a/cspell.json b/cspell.json index f7cb0abb..2af0ba36 100644 --- a/cspell.json +++ b/cspell.json @@ -71,6 +71,7 @@ "webxr", "XCHAR", "xlog", + "xiaoyuzhou", "zustand", "keymap", "autoscaler", diff --git a/public/assets/social/xiaoyuzhou.png b/public/assets/social/xiaoyuzhou.png new file mode 100644 index 00000000..98c4981b Binary files /dev/null and b/public/assets/social/xiaoyuzhou.png differ diff --git a/src/components/site/Platform.tsx b/src/components/site/Platform.tsx index 16138d01..7403078a 100644 --- a/src/components/site/Platform.tsx +++ b/src/components/site/Platform.tsx @@ -74,6 +74,11 @@ const syncMap: { icon: "/assets/social/discord.svg", url: "https://discord.gg/{username}", }, + xiaoyuzhou: { + name: "xiaoyuzhou FM", + icon: "/assets/social/xiaoyuzhou.png", + url: "https://www.xiaoyuzhoufm.com/podcast/{username}", + }, } export const Platform: React.FC<{ diff --git a/src/markdown/rehype-audio.ts b/src/markdown/rehype-audio.ts index 6d900b2a..df598058 100644 --- a/src/markdown/rehype-audio.ts +++ b/src/markdown/rehype-audio.ts @@ -25,6 +25,15 @@ export const rehypeAudio: Plugin, Root> = ({ node.properties.src = toGateway(src) if (first) { + if ( + !env.cover && + node.properties.cover && + typeof node.properties.cover === "string" + ) { + const coverIpfsUrl = toGateway(node.properties.cover) + node.properties.cover = coverIpfsUrl + env.cover = coverIpfsUrl + } env.audio = node.properties.src first = false }