Overview¶
Frontmatter is where you define metadata about a post or your profile. Things like your post title
, description
, tags
, and is_draft
are all fields that can be modified in the frontmatter. Some of these fields are required; others are optional.
Frontmatter should be written in YAML at the top of a post, surrounded by three (or more) dashes above and below.
Note
Profiles and posts support a similar but not identitcal set of frontmatter fields. For example, profiles can have a profile_image
(but posts cannot) and posts can have a title
(but profiles cannot).
Post fields¶
Example
-
title
(required)
≤ 180 charactersThe post title. Appears as the post heading and the title of the web page. Appears in search results, browser tabs, bookmarks, etc.
-
is_draft
(required)true
orfalse
Should this post be considered a draft? Drafts can only be seen by the post author and Scipress admins.
-
description
≤ 400 charactersWhat is this post about? Informs webcrawlers about your post. Appears in search results and social share cards.
-
feature_image
An image URL (https://foo.com/cat.png) or an image filename (cat.png) matching the name of an image you uploaded to Scipress. Must bepng
,jpg
, orjpeg
.Informs webcrawlers about your post. Appears in search results and social share cards.
-
icon
A lucide icon name.Appears next to the post title in the navigation.
-
slug
≤ 200 characters
Must not be one of the reserved slugs: [author
,dashboard
,edit
,reader
]A string used to describe this post in its URL. Must be comprised of letters, numbers, underscores, and dashes only.
For example, if a post has id
123
and titleDa Bears
, its URL will bescipress.io/post/123/da-bears
. The slug in this URL (da-bears
) is automatically generated from the title.slug
lets you override this value. For example, settingslug: the-bears
changes the post URL toscipress.io/post/123/the-bears
-
restrict_access
A list of user ids and/or email addresses.Which users should be allowed to see this post and its descendants? Additional rules regarding
is_draft
status, gated content, etc. still apply. -
tags
≤ 8 values, each ≤ 60 characters.A list of tags used to describe this post. Used for SEO and post discovery / search.
Profile fields¶
Example
-
name
(required)
≤ 60 charactersYour name, or however you want to be called
-
tagline
≤ 100 charactersA witty phrase that appears in your author blurb at the top of your posts. Alternatively, use this to advertise your brand/email/personal website.
-
description
≤ 1,000 charactersInforms webcrawlers about your profile page. Appears in search results and social share cards.
-
profile_image
An image URL (https://foo.com/cat.png) or an image filename (cat.png) matching the name of an image you uploaded to Scipress. Must bepng
,jpg
, orjpeg
.Appears in your navbar and author blurb at the top of your posts.
-
feature_image
An image URL (https://foo.com/cat.png) or an image filename (cat.png) matching the name of an image you uploaded to Scipress. Must bepng
,jpg
, orjpeg
.Informs webcrawlers about your post. Appears in search results and social share cards.
-
slug
≤ 200 characters
Must not be one of the reserved slugs: [author
,dashboard
,edit
,reader
]A string used to describe your profile in its URL. Must be comprised of letters, numbers, underscores, and dashes only.
For example, if your user
id
is123
and yourname
isMr. Spongebob
, your profile URL will bescipress.io/user/123/mr-spongebob
. The slug in this URL (mr-spongebob
) is automatically generated from yourname
.slug
lets you override this value. For example, settingslug: spongebob-squarepants
changes the post URL toscipress.io/user/123/spongebob-squarepants