Skip to content

Commit e253860

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents 1383810 + d54aefc commit e253860

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

cspell.json

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"webxr",
7272
"XCHAR",
7373
"xlog",
74+
"xiaoyuzhou",
7475
"zustand",
7576
"keymap",
7677
"autoscaler",

public/assets/social/xiaoyuzhou.png

1.82 KB
Loading

src/components/site/Platform.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ const syncMap: {
7474
icon: "/assets/social/discord.svg",
7575
url: "https://discord.gg/{username}",
7676
},
77+
xiaoyuzhou: {
78+
name: "xiaoyuzhou FM",
79+
icon: "/assets/social/xiaoyuzhou.png",
80+
url: "https://www.xiaoyuzhoufm.com/podcast/{username}",
81+
},
7782
}
7883

7984
export const Platform: React.FC<{

src/markdown/rehype-audio.ts

+9
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ export const rehypeAudio: Plugin<Array<{ env: MarkdownEnv }>, Root> = ({
2525
node.properties.src = toGateway(src)
2626

2727
if (first) {
28+
if (
29+
!env.cover &&
30+
node.properties.cover &&
31+
typeof node.properties.cover === "string"
32+
) {
33+
const coverIpfsUrl = toGateway(node.properties.cover)
34+
node.properties.cover = coverIpfsUrl
35+
env.cover = coverIpfsUrl
36+
}
2837
env.audio = node.properties.src
2938
first = false
3039
}

0 commit comments

Comments
 (0)