Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
DIYgod 2023-04-21 22:06:03 +01:00
commit e253860842
No known key found for this signature in database
4 changed files with 15 additions and 0 deletions

View File

@ -71,6 +71,7 @@
"webxr",
"XCHAR",
"xlog",
"xiaoyuzhou",
"zustand",
"keymap",
"autoscaler",

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -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<{

View File

@ -25,6 +25,15 @@ export const rehypeAudio: Plugin<Array<{ env: MarkdownEnv }>, 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
}