Setup
Add a blog post
Create a new Alternatively, give the file any name and set the date in the frontmatter:
.md file. Use the date-prefixed naming convention to set the publish date automatically:/blog/hello-world.md
- A summary index page at
/blog/ - An RSS feed
- “Newer” and “Older” navigation buttons on each post
- Date-ordered listing, newest first
The date in the filename sets the publish date. You can override it at any time using the
date frontmatter property.Blog summary page
Add anindex.md (or default.md or readme.md) inside the /blog/ folder to customize the summary page heading or add introductory content:
/blog/index.md
Frontmatter
Blog posts support all standard Retype page configuration options. The following properties are especially useful for blog posts:author
Set one or more authors for the post. Accepts a simple name string or a full author object:
date
A publish date in YYYY-MM-DD format. Retype displays it at the top of the post and uses it for ordering. If no date is set, Retype uses the date from the filename.
locale.dateFormat in your retype.yml.
category
Assign one or more categories. Retype automatically generates category summary pages at /categories/:
Project configuration
Control blog behavior in yourretype.yml under the blog key:
retype.yml
base
The URL path segment for the blog. Default is "blog".
base: news generates the summary page at /news/ instead of /blog/. Your source files still live in the /blog/ folder.
layout
The default layout for all blog posts. Default is blog. Set to page to include the left sidebar tree navigation and the right-side table of contents:
pageSize
The number of posts shown per summary page. Default is 10. When the total number of posts exceeds this value, Retype generates paginated summary pages automatically:
maxResults
The maximum total number of posts included across all paginated summary pages. Default is all posts. Posts beyond the limit are still accessible by direct URL:
title
A custom heading for the blog summary page:
rss
Customize the generated RSS feed metadata:
retype.yml
blog.rss documentation for the full list of RSS settings.