All blog posts are located in the content/blog
directory and accessible
through the /blog
URL.
The minimum frontmatter for a blog post should include a title
parameter:
---
title: Content. Blog
---
Besides title, it's highly recommended to add a date
to the
frontmatter:
---
title: Content.Blog
date: 2023-01-02
---
This is highly recommended because posts are ordered by the date that was set in the frontmatter. If it's omitted, file's creation date will be used instead.
If you want to exclude a post from the posts list, add
excludeFromCollections: true
to the frontmatter.
Add showSiteTitle: false
to the post's frontmatter.
When a user click on the "blog" navigation menu, he'll see
a postsCount
last posts and a button that navigates to the
full list. You can set postsCount
in the _data/meta.js
file.
Set showPostDate: true
in the _data/meta.js
file.