.md in the data/posts directory.
The name of the file (not including the
.md extension) will be used as the post “slug”, the part that shows up in the URL. For example, for the file data/posts/vogon-poetry.md the URL would be something like example.com/posts/vogon-poetry.Front Matter
In order for a post to be recognized by Plume it must contain some metadata like a title and published date. This metadata is defined as “front matter”, that is, some YAML set between tripple-dashes (i.e.---) and must be the first thing in the file.
Metadata Fields
The following metadata fields are supported.| Key | Type | Required | Details |
|---|---|---|---|
title | string | ✅️ | Post title |
published | string, int | ✅️ | Post publish date |
author | string | ❌️ | Post author |
image.url | string | ❌️ | Reference uploaded images as /files/image-name.png |
image.caption | string | ❌️ | Markdown allowed |
tags | array (of strings) | ❌️ | |
draft | boolean | ❌️ |
Markdown
Immediately following the front matter should be your post contents, authored in Markdown format. Plume supports the extended set of Markdown known as GitHub Flavored Markdown.Alerts
In addition to the GitHub Flavored Markdown spec Plume supports “Alerts” (a.k.a. callouts or admonitions), an extension of the blockquote syntax useful for emphasizing important information. Alerts render as block quotes with a distinctive color and icon to emphasize the content.TODO: Add a screenshot
Post Images
Images can be uploaded to thedata/files folder and referenced in your post markdown or raw HTML.
data/images/some-post/example.png can be referenced like so.