markdown - 如何在 hexo 帖子中插入预告片?
问题描述
知道如何在 hexo 的帖子中添加预告片断路器或换行符吗?
那么默认情况下主页的列表视图将为每个帖子显示预告片之前的内容?似乎默认情况下,它会显示主页中的所有内容。
解决方案
这取决于您使用的主题。
如果主题确实支持它,您可以在您的帖子中执行以下操作:
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
推荐阅读
- jointjs - JointJS 基线偏移
- java - 如何使用 Java 中子进程的 OutputStream?
- c# - 使用 ProcessModuleCollection 查找 .exe 加载的所有 DLL 并没有检测到所有这些 DLL?
- macos - Mac软件的自动点击+按键?
- graph - 使用动态规划查找图中从 u 到 v 的路径数
- jquery - 当加号和减号按钮不是购物车表单的一部分时,使用 Elementor 在 Woocommerce 上使用 + 和 - 按钮更改数量
- mybatis-generator - mybatis clientGenerated 无法回调
- python - 恢复交互式会话中意外覆盖的“numpy.random.seed”
- java - 如何定义列表
每个元素都是从另一个列表中获取的 在 JAVA 中 - python - Channels_redis 导致错误 AttributeError: 'Redis' object has no attribute 'bzpopmin'