首先fork这个项目https://github.com/mvasigh/sveltekit-mdsvex-blog,我fork后的项目地址是https://github.com/briteming/smb,这个程序不是用issue做源帖,因此无需启用issues.
然后编辑mdsvex.config.js - https://github.com/briteming/smb/blob/main/mdsvex.config.js ,把第19行的repository的值改为https://github.com/briteming/smb ,
然后访问src
posts -https://github.com/briteming/smb/tree/main/src/posts ,在此处新建源帖,比如test.svelte.md - https://github.com/briteming/smb/blob/main/src/posts/test.svelte.md?plain=1 ,内容是:然后导入项目https://github.com/briteming/smb到https://
https://github.com/mvasigh/sveltekit-mdsvex-blog
https://github.com/briteming/smb
这个项目的源帖其实是用的mdx格式,它不支持嵌入图片,所以我只好把此文https://smb-brite.netlify.app/posts/yz的源帖https://github.com/briteming/smb/blob/main/src/posts/yz.svelte.md?plain=1里的所有图片链接统统删除,此文 才得以发表成功。
No comments:
Post a Comment