hugo-geekblog/exampleSite/content/posts/features/sticky.md

594 B

title date authors tags weight
Simple sticky posts 2020-06-13T00:06:00+02:00
john-doe
Documentation
Features
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:

---
title: Simple sticky posts
weight: 1
date: 2020-06-13T00:06:00+02:00
authors:
  - john-doe
---