如何在hexo帖子中插入预告片断路器?

时间:2018-10-28 14:32:27

标签: markdown hexo

有人知道如何在hexo的帖子中添加预告片断路器或线路断路器吗?

因此,默认情况下,主页的列表视图将在每个帖子之前显示出挑逗破坏者之前的内容吗?默认情况下,它似乎显示主页中的所有内容。

1 个答案:

答案 0 :(得分:1)

这取决于您使用的主题。

如果主题确实支持该主题,则可以在您的帖子中进行:

title: post title
---
This part is the excerpt, get it with the <%- post.excerpt %>
<!-- more --> 
This is the rest of the post. You can get it with <%- post.more %>
     

https://github.com/hexojs/hexo/issues/1143#issuecomment-102247129