Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index.md问题 #163

Closed
myzf opened this issue Jan 5, 2024 · 7 comments
Closed

index.md问题 #163

myzf opened this issue Jan 5, 2024 · 7 comments

Comments

@myzf
Copy link

myzf commented Jan 5, 2024

还记得index.md,vitepress不能显示这个markdown,最后你怎么解决了

@myzf
Copy link
Author

myzf commented Jan 5, 2024

我用homecontent包了一层,里面写markdown还是不生效

@ATQQ
Copy link
Owner

ATQQ commented Jan 5, 2024

还记得index.md,vitepress不能显示这个markdown,最后你怎么解决了

我直接没在首页写了 markdown了害。

如果写的你可以看看之前那个issue 好像有提 解决方案

现在我能想到的是 它应该是提供了markdown解析的 只是 layout:home 场景下 不会有样式注入 你可以看一下 layout组件 把它的样式import一下应该也行

@myzf
Copy link
Author

myzf commented Jan 5, 2024

我对ts这个不大熟悉,觉得他这个有点蠢,vuepress都支持,它就不行,描述的意思我知道大概就是避免样式冲突。你有空没,能帮我看看怎么改不,看了那个index.js也没找到咋设置吧

@ATQQ
Copy link
Owner

ATQQ commented Jan 5, 2024

好的我周末看一下给你个例子 嘿嘿 到时候Q你

@myzf
Copy link
Author

myzf commented Jan 5, 2024

好滴不管咋样,先谢谢啦

@ATQQ
Copy link
Owner

ATQQ commented Jan 5, 2024

@myzf 搞定

你参考这个 commit 改一下就行引入个局部的样式

1ae39e2


效果你可以看我主题 首页 https://theme.sugarat.top/#%E2%9A%A1-%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B

image

@ATQQ ATQQ closed this as completed Jan 6, 2024
@myzf
Copy link
Author

myzf commented Jan 6, 2024

@myzf 搞定

你参考这个 commit 改一下就行引入个局部的样式

1ae39e2

效果你可以看我主题 首页 https://theme.sugarat.top/#%E2%9A%A1-%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B

image

收到了试了试是ok的,多谢多谢哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants