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

请问如何设置read more? #62

Closed
runshenzhu opened this issue Mar 23, 2015 · 25 comments
Closed

请问如何设置read more? #62

runshenzhu opened this issue Mar 23, 2015 · 25 comments
Labels

Comments

@runshenzhu
Copy link

No description provided.

@goxofy
Copy link

goxofy commented Mar 23, 2015

?

@mingmings
Copy link

@goxofy 是的,markdown 里 加上个这串,默认就只会显示 <!--more--> 之上的内容了

@iissnan
Copy link
Owner

iissnan commented Mar 24, 2015

或者,在 markdown 头部的 Front-matter 里面加入 description 字段。优先会使用 description 字段的内容。

@ghost
Copy link

ghost commented Mar 30, 2015

没懂

@polarlights
Copy link

实现如这个主题的 Readme 样式是否方便? http://litten.github.io

@nlpjoe
Copy link

nlpjoe commented Apr 16, 2016

You can find the key 'auto_excerpt:' in _config.yml of next's theme.Then set enable true,length express the length of abstract.After setting like this:
auto_excerpt:
enable: true
length: 150

@nlpjoe
Copy link

nlpjoe commented May 21, 2016

@zsmlinux I don't understand ur mean.

@ChaosSoong
Copy link

为什么我在 文章.md 中加入之后,在首页起作用了,点击阅读全文后,以下的内容也不会显示了

@ygcaicn
Copy link

ygcaicn commented Oct 16, 2016

首页文章与文章间的区分度太小了,还有就是题目的文字还不如一级标题明显呢,,不合常理,望改进!

按下Ctrl点击-> Gang blog

望指导更优的配置!

@yuebanliu
Copy link

yuebanliu commented Oct 25, 2016

测试之后发现<!--more--> 好使,刚好就是需要这样的东西 ,description 的话字数太少了

@kuyeduwu
Copy link

<!--more--> 正解

@chenHongbin
Copy link

@kuyeduwu 这个要放在哪里呢?如何使用呢?

@yuebanliu
Copy link

@chenHongbin 直接在博客里面写就行了,这样在列表里面就能看到,
github
more

@kuyeduwu
Copy link

@chenHongbin 在用文本编辑器编辑文章正文的时候直接使用就行,楼上的图片更直观。

@pjpjq
Copy link

pjpjq commented Mar 27, 2017

我本来可以加这行显示阅读全文的, 下了个插件然后就用不了了, 因为那个插件好像要删除原装 markdown 怎么重装 hexo markdown呢

@TodLorry
Copy link

TodLorry commented Jul 5, 2017

2017-07-05 7 52 58
为什么我的分类数量明明是1个,缺显示“共有分类5个“呢

@HowieMen
Copy link

HowieMen commented Jul 12, 2017 via email

@haobangpig
Copy link

@nlpjoe I don't think it works well, cause it will display some code not naturally, the

will be the best answer in here.

@haobangpig
Copy link

<!--more-->

is the best answer

@ivan-nginx
Copy link
Collaborator

is the best answer

Yes, it is.

@coolboygym
Copy link

coolboygym commented Oct 28, 2017

前面各位提到的方法都试过了,个人认为最好用的还是在文章的合适位置添加锚点这种方法,不过有一点需要注意的是,必须将主题目录下配置文件里的scroll_to_more这个选项设置为false,这样当用户点击阅读全文时,可以跳转到全文的开始位置,而不是直接跳到我们所设置的锚点所在的位置,个人感觉这样可以给读者更好的阅读体验,推荐大家使用。感谢 @CallMeSirLiu

@mutouyu
Copy link

mutouyu commented Jan 7, 2018

如果想截断文章,在首页显示文章摘录,可以试试在主题配置文件_config.yml中添加:
auto_excerpt:
enable: true
length: 150 #默认截取的长度为 150 字符
已经试过了,很好用

@i-free-developer
Copy link

配置文件配置后不行,文章中用 也不行,奇怪了
auto_excerpt:
enable: true
length: 150

@ivan-nginx
Copy link
Collaborator

NexT is rebased into organization repo.
If you want new feature, please, close this issue and create new in NexT v6.x repo.
There is instructions on English or Chinese how to update from v5.1.x to v 6.0.x

You also may read this for details.

@mojitoming
Copy link

前面各位提到的方法都试过了,个人认为最好用的还是在文章的合适位置添加锚点这种方法,不过有一点需要注意的是,必须将主题目录下配置文件里的scroll_to_more这个选项设置为false,这样当用户点击阅读全文时,可以跳转到全文的开始位置,而不是直接跳到我们所设置的锚点所在的位置,个人感觉这样可以给读者更好的阅读体验,推荐大家使用。感谢 @CallMeSirLiu

正好需要这个设置~Thanks a lot~!

Repository owner locked and limited conversation to collaborators Sep 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests