mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-24 22:10:39 +00:00
25 lines
594 B
Markdown
25 lines
594 B
Markdown
---
|
|
title: Simple sticky posts
|
|
date: 2020-06-13T00:06:00+02:00
|
|
authors:
|
|
- john-doe
|
|
tags:
|
|
- Documentation
|
|
- Features
|
|
weight: 1
|
|
---
|
|
|
|
Sticky (or pinned) posts can be used to permanently pin important posts to the top of the post list. The implementation is pretty simple and handled by `weight: 1` in a post front matter. As there is no other logic to identify sticky posts you should not use negative values for weight as this will result in posts listed earlier.
|
|
|
|
**Example:**
|
|
|
|
```YAML
|
|
---
|
|
title: Simple sticky posts
|
|
weight: 1
|
|
date: 2020-06-13T00:06:00+02:00
|
|
authors:
|
|
- john-doe
|
|
---
|
|
```
|