参考文章 https://rogchen.github.io/2019/09/16/hexo-more/

一、hexo的auto_excerpt属性

1
2
3
auto_excerpt:
enable: false
length: 150

经过实验,本主题hexo-theme-yun貌似不支持

二、<!-more->注释截断文章

在markdown文章里选择要显示的位置,加入<!--more-->,则只显示前面部分,后面部分要进入文章才显示。

三、 在文章的 front-matter 中添加description属性

hexo官网 front-matter 介绍

1
2
3
4
5
6
title: 首页文章显示部分内容
description: 总算知道怎么让首页的文章加载部分内容了
date: 2022-08-14 08:21:17
categories: hexo
tags:
- hexo