Skip to content

Commit

Permalink
sticky post test usecase
Browse files Browse the repository at this point in the history
  • Loading branch information
hooozen committed Jul 4, 2023
1 parent 26d7d5c commit 4765a94
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
3 changes: 2 additions & 1 deletion _config.use.tranquility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

# Site
title: 致远
subtitle: ""
subtitle: "Hexo Theme | Tranquility"
description: ""
keywords:
- hexo theme
author: Hozen
language: zh-cn
timezone: ""
Expand Down
2 changes: 1 addition & 1 deletion source/_posts/feat-封面测试.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: 封面测试
date: 2023-07-03 11:58:32
tags: text
category: featTest
cover: /tranquility/assets/hozen-durdledoor.jpg
cover: assets/hozen-durdledoor.jpg
---

这是一篇带封面的文章,通过设置文章的 `cover` 字段指定封面的 URL. 封面的显示比例是 3:2,事先将图片裁剪成该比例可以更好的显示,否则图片会被自动平铺。
Expand Down
13 changes: 13 additions & 0 deletions source/_posts/feat-置顶测试 2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: 置顶测试-2
date: 2023-07-03 11:00:47
tags: 置顶
sticky: 2
category: featTest
---

这篇文章用来测试置顶功能. 设置文章属性 `sticky: [number]` 来指定置顶优先级,数字越大优先级越高,但不能小于等于0. 该篇文章的 `sticky` 为 2. 它应该出现在文章列表的顶部,并高于优先级更低的文章.

<!--more-->

置顶功能用来置顶非常重要的文章,希望访问者能立即读到. 或者用来组织一个系列文章的目录.
13 changes: 13 additions & 0 deletions source/_posts/feat-置顶测试.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: 置顶测试-1
date: 2023-07-04 11:00:47
tags: 置顶
sticky: 1
category: featTest
---

这篇文章用来测试置顶功能. 设置文章属性 `sticky: [number]` 来指定置顶优先级,数字越大优先级越高,但不能小于等于0. 该篇文章的 `sticky` 为 1. 它应该出现在文章列表的顶部,但低于优先级更高的文章.

<!--more-->

置顶功能用来置顶非常重要的文章,希望访问者能立即读到. 或者用来组织一个系列文章的目录.

0 comments on commit 4765a94

Please sign in to comment.