-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: 隐藏式摘要测试 | ||
date: 2024-01-27 11:58:32 | ||
tags: text | ||
category: featTest | ||
cover: assets/hozen-durdledoor.jpg | ||
abstract: "该文章测试隐藏式摘要功能,此文本只会在文章列表展示,文章正文中不再出现" | ||
--- | ||
|
||
本段是文章的节录 (excerpt),正常情况下会展示在文章列表页,但由于本文设置了 `abstract`,本段内容会被 `abstract` 内容覆盖作为文章摘要显示在文章列表中。 | ||
|
||
<!--more--> | ||
|
||
通过在[Front-matter](https://hexo.io/zh-cn/docs/front-matter)中设置 `abstract` 字段来设置隐藏式摘要,abstract 的设置不同于通过在正文使用 `<!--more-->` 隔断的节录(excerpt)。abstract 的内容不会再出现在正文中,并且 abstrct 会覆盖 excerpt 在文章列表的中的展示。 | ||
|
||
```yml | ||
--- | ||
title: 隐藏式摘要测试 | ||
date: 2024-01-27 11:58:32 | ||
tags: text | ||
category: featTest | ||
cover: assets/hozen-durdledoor.jpg | ||
abstract: "该文章测试隐藏式摘要功能,此文本只会在文章列表展示,文章正文中不再出现。" | ||
--- | ||
``` | ||
|
||
![hozen, Durdle Door, 2023.6](/tranquility/assets/hozen-durdledoor-l.jpg) |
Submodule tranquility
updated
4 files
+1 −1 | layout/_partials/macros/post-list.njk | |
+2 −2 | layout/_partials/scripts/Timeline.njk | |
+18 −32 | layout/cv.njk | |
+5 −0 | source/css/_highlight.styl |