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.xxx"}
10
11::spotify{url="https://open.spotify.com/type/xxxxx"}
12
13::youtube{url="https://www.youtube.com/watch?v=xxxxx"}
14
15::bilibili{url="https://www.bilibili.com/video/xxxxx"}
16
17::github{repo="username/repo"}
18
19::x{url="https://x.com/username/status/xxxxx"}
20
21::neodb{url="https://neodb.social/category/xxxxx"}
22```
23
24```
25🟡
26
27When embedded content is still loading,
28the table of contents positioning may be inaccurate.
29```
30
31## Link Card
32
33::link{url="https://pitchfork.com/reviews/albums/ichiko-aoba-luminescent-creatures/"}
34
35```
36🟡
37
38If you don’t need Link Card,
39you can set `linkCard` to `false` in `src/config.ts`,
40then you don't need to set adapter before building.
41```
42
43## Spotify
44
45::spotify{url="https://open.spotify.com/track/41Y0ch6R3jzpJOZv6nhf9Z?si=6c82dbed65ab4853"}
46
47::spotify{url="https://open.spotify.com/album/1kBPEN3NIVwjdmIjjNk9vB?si=Lz29MvjwRnKX9y3dhxlbaQ"}
48
49## YouTube
50
51::youtube{url="https://www.youtube.com/embed/GlhV-OKHecI?si=KdB4rRPLAMEK-ozf"}
52
53## BiliBili
54
55::bilibili{url="https://www.bilibili.com/video/BV1Vm421W7pX/?vd_source=c0bc2746a6d2b23de50d26376498b2ff"}
56
57## GitHub
58
59::github{repo="the3ash/astro-chiri"}
60
61## X Post
62
63::x{url="https://x.com/DAVID_LYNCH/status/1174367510893752321"}
64
65## NeoDB (CN Only)
66
67::neodb{url="https://neodb.social/album/5nD3R8gmnVlsoOBdyO8PA3"}
68
69::neodb{url="https://neodb.social/movie/1bhogjXkNnlWWM0bf6aj8P"}
70
71::neodb{url="https://neodb.social/book/4BqQ5mhfKMHPND3L6hf0Qh"}
72
73::neodb{url="https://neodb.social/game/1hl18l0qD5UN93k8ZkCZ7Q"}