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

构建自己的博客 | wuwh's blog #4

Open
wuwhs opened this issue Aug 31, 2018 · 5 comments
Open

构建自己的博客 | wuwh's blog #4

wuwhs opened this issue Aug 31, 2018 · 5 comments

Comments

@wuwhs
Copy link
Owner

wuwhs commented Aug 31, 2018

https://wuwhs.github.io/2018/08/30/%E6%9E%84%E5%BB%BA%E8%87%AA%E5%B7%B1%E7%9A%84%E5%8D%9A%E5%AE%A2/#more

@wuwhs
Copy link
Owner Author

wuwhs commented Aug 31, 2018

just a test comment

@heyuhua1992
Copy link

你好! 根据教程这么做之后,
我设置了 显示全文阅读的按钮,
在主页的时候,预览部分的文章没有markdown样式,比如(https://heyuhua1992.github.io/)
F12 也是显示输入的是文本,
但是看到有一些博客的预览文章是由样式的,比如(http://www.leason.top/)
请问这是怎么做到的?

@wuwhs
Copy link
Owner Author

wuwhs commented Sep 9, 2018

hello,
修改Next的配置文件,把配置项auto_excerptenable: false;,不要全局设置限定首页文章显示字符个数(转化成文本计算字符的,所以显示中去除了样式),在文章需要处加<!-- more --> 截取文章显示阅读全文,这样样式是被保留的
@heyuhua1992

@heyuhua1992
Copy link

加入后解决了,auto_excerpt的enable:true 也可以显示markdown格式。
已解决,谢谢!
@wuwhs

@wangyong93
Copy link

aaa

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

No branches or pull requests

3 participants