Info Frontmatter Config
You can set information for page with the following frontmatter options.
Options
stringCurrent page's title. Markdown's first h1 by default.
stringCurrent page's short title. It will be used as the preferred title in navbar, sidebar and breadcrumb.
stringCurrent page's description.
stringFontClass / Image link of the current page icon (recommended).
See also: Interface → Icon Support.
Author | booleanShow the author of the current page. If you don't fill it, you will fall back to the default author.
Tips
When setting default author in theme options, you can set false to prevent showing the default author.
See also: Feature → Page Info.
Its type is:
type AuthorName = string;
interface AuthorInfo {
/**
* Author name
*/
name: string;
/**
* Author website
*/
url?: string;
/**
* Author email
*/
email?: string;
}
type Author = AuthorName | AuthorName[] | AuthorInfo | AuthorInfo[];booleanWhether the current article is original.
See also: Feature → Page Info.
DateStringSet the writing time of the current page, with YYYY-MM-DD or YYYY-MM-DD hh:mm:ss format.
See also: Feature → Page Info.
string | string[]Set the category of the current page.
See also: Feature → Page Info.
string | string[]Set the label of the current page.
See also: Feature → Page Info.
string | falseThe copyright information of the page, will be displayed in footer.
See also: Layout → Footer.
booleanWhether display page views.
Tips
The pageview feature requires you to have a valid Waline Comment Service config.
See also: Feature → Comment.
booleantrueWhether to add the article to the timeline list.
See also: Blog → Timeline.
boolean | numberSets whether the current article is pinned in the list. When fill in with number, greater ones come before smaller ones.
See also: Blog → Article.
boolean | numberSets whether the current article is pinned in the article list in blog theme. When fill in with number, greater ones come before smaller ones.
See also: Blog → Article.
stringCover image of the page.
See also: FAQ → Links in Config.
stringBanner image of the page.
See also: FAQ → Links in Config.
Changelog
0c1aa-ond7092-one1ab4-on799e9-on7bd34-ond8aeb-on2a306-on86180-on8174c-on764e7-on0eabe-on9fcf5-onbffde-onc5aa8-on9856d-on43a29-onad023-onfd395-on1eb77-on4164d-on