diff --git a/astro.config.mjs b/astro.config.mjs index c70af5d..5fbbc1b 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -42,8 +42,7 @@ export function rehypeAutoVideo() { return (tree) => { visit(tree, "element", (node, index, parent) => { if (node.tagName === "auto-video" && parent && index !== undefined) { - const src = node.properties.src; - const alt = node.properties.alt; + const { src, alt, width, height } = node.properties; if (!src) return; const lazyVideo = { @@ -52,6 +51,8 @@ export function rehypeAutoVideo() { properties: { className: ["inline-video", "lazy-video"], alt: alt, + width: width, + height: height, loading: "lazy", loop: true, muted: true, @@ -77,6 +78,8 @@ export function rehypeAutoVideo() { properties: { className: ["inline-video"], alt: alt, + width: width, + height: height, loading: "lazy", loop: true, muted: true, diff --git a/src/content/docs/en-us/1.13.x/blocks.md b/src/content/docs/en-us/1.13.x/blocks.md index bab495b..8c84d66 100644 --- a/src/content/docs/en-us/1.13.x/blocks.md +++ b/src/content/docs/en-us/1.13.x/blocks.md @@ -93,7 +93,7 @@ The commands are executed as an entity. So, in the case of `/say hi!` all player Fully grown, hanging propagules will fall after some time. - + ## Cactus Bottle Filling 🌵 @@ -119,13 +119,13 @@ Tighten the string of your bow in the fletching table for improved accuracy. A joke tweak making beds explode in the overworld. - + ## Bed Explosion Power 💥 :) - + ## Guarded Loot 🛡 diff --git a/src/content/docs/en-us/1.13.x/entities.md b/src/content/docs/en-us/1.13.x/entities.md index ecdf2a2..d42bf93 100644 --- a/src/content/docs/en-us/1.13.x/entities.md +++ b/src/content/docs/en-us/1.13.x/entities.md @@ -76,9 +76,9 @@ Small slime related tweaks. Each option can be turned on or off. When a bee pollinates a flower, the flower has a chance to spread, much like grass. - +
- + ::: details configuration diff --git a/src/content/docs/en-us/1.13.x/gui.md b/src/content/docs/en-us/1.13.x/gui.md index 3a20faf..3755412 100644 --- a/src/content/docs/en-us/1.13.x/gui.md +++ b/src/content/docs/en-us/1.13.x/gui.md @@ -29,4 +29,4 @@ Remove "Adventure Mode" from the gamemode switcher Display an in-world tooltip when you look at item frames. - + diff --git a/src/content/docs/en-us/1.13.x/items.md b/src/content/docs/en-us/1.13.x/items.md index dce01fa..b5a68da 100644 --- a/src/content/docs/en-us/1.13.x/items.md +++ b/src/content/docs/en-us/1.13.x/items.md @@ -104,4 +104,4 @@ Allows you to "pick up" blocks using minecarts. All contents and some properties For the sake of balance, you can configure whether players can "pick up" spawners. - + diff --git a/src/content/docs/en-us/1.13.x/world.md b/src/content/docs/en-us/1.13.x/world.md index e85eea1..a40706f 100644 --- a/src/content/docs/en-us/1.13.x/world.md +++ b/src/content/docs/en-us/1.13.x/world.md @@ -27,13 +27,13 @@ Based on [TinyTweaks](https://www.curseforge.com/minecraft/mc-mods/tinytweaks) b Randomly, bee nests will fall from their trees, making the bees inside homeless & if a player is nearby, very angry. - + It usually takes 0-2 days for a nest to fall. Arrows also work! - + ## Temperature Based Crop Growth Speed 🌡️ diff --git a/src/content/docs/en-us/2.1.x/blocks.md b/src/content/docs/en-us/2.1.x/blocks.md index 78636dc..11021ff 100644 --- a/src/content/docs/en-us/2.1.x/blocks.md +++ b/src/content/docs/en-us/2.1.x/blocks.md @@ -9,7 +9,7 @@ description: Block related tweaks Fully grown, hanging propagules will fall after some time. - + ## Cactus Bottle Filling 🌵 @@ -35,13 +35,13 @@ Tighten the string of your bow in the fletching table for improved accuracy. A joke tweak making beds explode in the overworld. - + ## Bed Explosion Power 💥 :) - + ## Guarded Loot 🛡 diff --git a/src/content/docs/en-us/2.1.x/entities.md b/src/content/docs/en-us/2.1.x/entities.md index 7ec3a34..8beac91 100644 --- a/src/content/docs/en-us/2.1.x/entities.md +++ b/src/content/docs/en-us/2.1.x/entities.md @@ -78,9 +78,9 @@ Small slime related tweaks. Each option can be turned on or off. When a bee pollinates a flower, the flower has a chance to spread, much like grass. - +
- + ::: details configuration diff --git a/src/content/docs/en-us/2.1.x/gui.md b/src/content/docs/en-us/2.1.x/gui.md index 3a20faf..3755412 100644 --- a/src/content/docs/en-us/2.1.x/gui.md +++ b/src/content/docs/en-us/2.1.x/gui.md @@ -29,4 +29,4 @@ Remove "Adventure Mode" from the gamemode switcher Display an in-world tooltip when you look at item frames. - + diff --git a/src/content/docs/en-us/2.1.x/items.md b/src/content/docs/en-us/2.1.x/items.md index e379357..36d594c 100644 --- a/src/content/docs/en-us/2.1.x/items.md +++ b/src/content/docs/en-us/2.1.x/items.md @@ -104,4 +104,4 @@ Allows you to "pick up" blocks using minecarts. All contents and some properties For the sake of balance, you can configure whether players can "pick up" spawners. - + diff --git a/src/content/docs/en-us/2.1.x/world.md b/src/content/docs/en-us/2.1.x/world.md index 2a04ac3..d774dfa 100644 --- a/src/content/docs/en-us/2.1.x/world.md +++ b/src/content/docs/en-us/2.1.x/world.md @@ -27,13 +27,13 @@ Based on [TinyTweaks](https://www.curseforge.com/minecraft/mc-mods/tinytweaks) b Randomly, bee nests will fall from their trees, making the bees inside homeless & if a player is nearby, very angry. - + It usually takes 0-2 days for a nest to fall. Arrows also work! - + ## Temperature Based Crop Growth Speed 🌡️ diff --git a/src/content/docs/zh-cn/1.13.x/blocks.md b/src/content/docs/zh-cn/1.13.x/blocks.md index 079b935..3c3c735 100644 --- a/src/content/docs/zh-cn/1.13.x/blocks.md +++ b/src/content/docs/zh-cn/1.13.x/blocks.md @@ -93,7 +93,7 @@ description: 方块相关调整 成熟后,悬挂的红树胎生苗会掉下来。 - + ## 仙人掌取水 🌵 @@ -119,13 +119,13 @@ description: 方块相关调整 一个玩笑式的,让主世界的床也能爆炸的设计。 - + ## 床的爆炸强度 💥 :) - + ## 宝藏守卫 🛡 diff --git a/src/content/docs/zh-cn/1.13.x/entities.md b/src/content/docs/zh-cn/1.13.x/entities.md index fa9e8b2..03e412b 100644 --- a/src/content/docs/zh-cn/1.13.x/entities.md +++ b/src/content/docs/zh-cn/1.13.x/entities.md @@ -76,9 +76,9 @@ description: 实体相关调整 蜜蜂为花朵授粉时,可能像用骨粉催生草那样催生花丛。 - +
- + ::: details configuration diff --git a/src/content/docs/zh-cn/1.13.x/gui.md b/src/content/docs/zh-cn/1.13.x/gui.md index 58aac5a..8e74de0 100644 --- a/src/content/docs/zh-cn/1.13.x/gui.md +++ b/src/content/docs/zh-cn/1.13.x/gui.md @@ -29,4 +29,4 @@ description: GUI 和屏幕显示的相关调整 游戏内,为物品展示框添加物品提示。 - + diff --git a/src/content/docs/zh-cn/1.13.x/items.md b/src/content/docs/zh-cn/1.13.x/items.md index 11aaa8a..3fae957 100644 --- a/src/content/docs/zh-cn/1.13.x/items.md +++ b/src/content/docs/zh-cn/1.13.x/items.md @@ -104,4 +104,4 @@ N 代表下界合金块,D 代表钻石块。 考虑到平衡性,你可以配置玩家是否能“采集”刷怪笼。 - + diff --git a/src/content/docs/zh-cn/1.13.x/world.md b/src/content/docs/zh-cn/1.13.x/world.md index 0443637..2b4ba72 100644 --- a/src/content/docs/zh-cn/1.13.x/world.md +++ b/src/content/docs/zh-cn/1.13.x/world.md @@ -27,13 +27,13 @@ description: 世界相关调整 蜂巢会随机地从树上掉下来,其中的蜜蜂则会无家可归,并将怒火宣泄到靠近的玩家身上。 - + 根据我的测试,通常需要 0-2 天,蜂巢才能自然掉落。 朝蜂巢射箭也能使之掉落! - + ## 基于温度的作物生长速度 🌡️ diff --git a/src/content/docs/zh-cn/2.1.x/blocks.md b/src/content/docs/zh-cn/2.1.x/blocks.md index 3b088dd..393ed6b 100644 --- a/src/content/docs/zh-cn/2.1.x/blocks.md +++ b/src/content/docs/zh-cn/2.1.x/blocks.md @@ -9,7 +9,7 @@ description: 方块相关调整 成熟后,悬挂的红树胎生苗会掉下来。 - + ## 仙人掌取水 🌵 @@ -35,13 +35,13 @@ description: 方块相关调整 一个玩笑式的,让主世界的床也能爆炸的设计。 - + ## 床的爆炸强度 💥 :) - + ## 宝藏守卫 🛡 diff --git a/src/content/docs/zh-cn/2.1.x/entities.md b/src/content/docs/zh-cn/2.1.x/entities.md index e3a9c0d..d5aa6b4 100644 --- a/src/content/docs/zh-cn/2.1.x/entities.md +++ b/src/content/docs/zh-cn/2.1.x/entities.md @@ -76,9 +76,9 @@ description: 实体相关调整 蜜蜂为花朵授粉时,可能像用骨粉催生草那样催生花丛。 - +
- + ::: details configuration diff --git a/src/content/docs/zh-cn/2.1.x/gui.md b/src/content/docs/zh-cn/2.1.x/gui.md index 58aac5a..8e74de0 100644 --- a/src/content/docs/zh-cn/2.1.x/gui.md +++ b/src/content/docs/zh-cn/2.1.x/gui.md @@ -29,4 +29,4 @@ description: GUI 和屏幕显示的相关调整 游戏内,为物品展示框添加物品提示。 - + diff --git a/src/content/docs/zh-cn/2.1.x/items.md b/src/content/docs/zh-cn/2.1.x/items.md index 8aacae4..bacc1dc 100644 --- a/src/content/docs/zh-cn/2.1.x/items.md +++ b/src/content/docs/zh-cn/2.1.x/items.md @@ -104,4 +104,4 @@ N 代表下界合金块,D 代表钻石块。 考虑到平衡性,你可以配置玩家是否能“采集”刷怪笼。 - + diff --git a/src/content/docs/zh-cn/2.1.x/world.md b/src/content/docs/zh-cn/2.1.x/world.md index 0443637..2b4ba72 100644 --- a/src/content/docs/zh-cn/2.1.x/world.md +++ b/src/content/docs/zh-cn/2.1.x/world.md @@ -27,13 +27,13 @@ description: 世界相关调整 蜂巢会随机地从树上掉下来,其中的蜜蜂则会无家可归,并将怒火宣泄到靠近的玩家身上。 - + 根据我的测试,通常需要 0-2 天,蜂巢才能自然掉落。 朝蜂巢射箭也能使之掉落! - + ## 基于温度的作物生长速度 🌡️ diff --git a/src/layouts/base.css b/src/layouts/base.css index 2aa30bf..fdf2e32 100644 --- a/src/layouts/base.css +++ b/src/layouts/base.css @@ -20,8 +20,13 @@ body { margin-inline: auto; max-width: 100%; width: 520px; + height: auto; } .lazy-video { display: none; } + +.eager-video { + display: block; +}