add video and fix filename for md

This commit is contained in:
polv committed 2026-02-01 19:37:08 +07:00
1 parent 00033e0341
commit 2b47af46de
5 files changed
+1496 -2

No files matched your search

+20
View File
@@ -26,6 +26,26 @@ export default defineConfig({
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
]
},
markdown: {
image: {
lazyLoading: true,
},
config(md) {
md.renderer.rules.image = function (tokens, idx, options, env, slf) {
const token = tokens[idx];
// Get the alt if it exists
const alt = token.attrGet('alt') || token.content || '';
// Fill the title attribute with the alt if it exists
if (!token.attrGet('title')) {
token.attrSet('title', alt);
}
return slf.renderToken(tokens, idx, options)
}
}
},
vite: {
clearScreen: false,
server: {
+1 -1
View File
@@ -40,7 +40,7 @@ setTimeout(() => setImgClick(), 500)
<style scoped>
video {
width: 750px;
width: 400px;
overflow: visible;
position: fixed;
bottom: 10px;
+1
View File
@@ -9,6 +9,7 @@ hero:
<Downloader />
- [みんなうっかり間違える!?中国語 様態補語と程度補語の文法の注意点とは](/みんなうっかり間違える!?中国語_様態補語と程度補語の文法の注意点とは)
- [【剥茧The Truth Within】EP02](/qVVhBGT0K7Y)
- [15萬緬甸人在台灣的背後,是一段顛沛流離的故事](/15萬緬甸人在台灣的背後,是一段顛沛流離的故事)
- [美国突袭委内瑞拉,真的是为了抢那点劣质石油吗?](/美国突袭委内瑞拉,真的是为了抢那点劣质石油吗?)