Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
e253860842
|
|
@ -71,6 +71,7 @@
|
|||
"webxr",
|
||||
"XCHAR",
|
||||
"xlog",
|
||||
"xiaoyuzhou",
|
||||
"zustand",
|
||||
"keymap",
|
||||
"autoscaler",
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
|
|
@ -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<{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue