forked from
quillmatiq.com/augment
Fork of Chiri for Astro for my blog
1---
2title: 'Embedded Content'
3pubDate: '2025-06-06'
4---
5
6Use these directives to embed media:
7
8```
9::link{url="https://xxxxx"}
10
11::spotify{url="https://open.spotify.com/type/xxxxxx"}
12
13::youtube{url="https://www.youtube.com/watch?v=xxxxxx"}
14
15::bilibili{url="https://www.bilibili.com/video/xxxxxx"}
16
17::github{repo="username/repo"}
18
19::x{url="https://x.com/username/status/xxxxxx"}
20```
21
22```
23🟡
24
25When embedded content is still loading,
26the table of contents positioning may be inaccurate.
27```
28
29## Link Card
30
31::link{url="https://pitchfork.com/reviews/albums/ichiko-aoba-luminescent-creatures/"}
32
33```
34🟡
35
36If you don’t need Link Card,
37you can set `linkCard` to `false` in `src/config.ts`,
38then you don't need to set adapter before building.
39```
40
41## Spotify
42
43::spotify{url="https://open.spotify.com/track/41Y0ch6R3jzpJOZv6nhf9Z?si=6c82dbed65ab4853"}
44
45::spotify{url="https://open.spotify.com/album/1kBPEN3NIVwjdmIjjNk9vB?si=Lz29MvjwRnKX9y3dhxlbaQ"}
46
47## YouTube
48
49::youtube{url="https://www.youtube.com/embed/GlhV-OKHecI?si=KdB4rRPLAMEK-ozf"}
50
51## BiliBili
52
53::bilibili{url="https://www.bilibili.com/video/BV1Vm421W7pX/?vd_source=c0bc2746a6d2b23de50d26376498b2ff"}
54
55## GitHub
56
57::github{repo="the3ash/astro-chiri"}
58
59## X Post
60
61::x{url="https://x.com/DAVID_LYNCH/status/1174367510893752321"}