YenYuHsuan / hexo-theme-beantech

:sparkles: Ported theme of Hux Blog by Kaijun, Modified by YuHsuan :sparkles:
http://beantech.org
Apache License 2.0
441 stars 105 forks source link

请问首页文章怎么自定义展示字数呢? #5

Open grt1st opened 7 years ago

grt1st commented 7 years ago

您的这个主题真的非常棒,我很喜欢。 但是在我以前用过的next主题,可以在文章里加入<!--more-->,这个之前的为文章的缩略,之后的就是全文。 举个例子:article.md

--
title: "test"
date: 2017-05-31 22:50:00
catalog: true
header-img: "img/header_img/Iron-Man-3.jpg"
subtitle: "test"
tags:
- hexo
catagories:
- hexo
---
首页展示部分

<!--more-->

正文

## 1.test1

blabla
## 2.test2
blabla

希望您能对这个提供支持。因为这样会显得主页非常简洁。

再次感谢您为我们提供这么优美的主题。

YenYuHsuan commented 7 years ago

@grt1st Got it i'll try to finish it :smile: thanks for your suggestion

grt1st commented 7 years ago

刚刚又想了一下,将缩略(即想展示在首页的)写在subtitle里也还不错。毕竟因为这个主题的布局,现在这样已经很完美了。再次感谢。

YenYuHsuan commented 7 years ago

@grt1st Thanks I think both of the solutions are great, but I still prefer the first one 😛 (<!--more-->). so I'll try to make it work. Glad you guys like it ~~ Thanks again, Peace!

TopJohn commented 5 years ago

Hi,this feature finished?I think it's very usefully.