Page Configuration

Mr.Hope ... Config
About 3 min

The following configuration options have been added to the page's Front Matter:

# Page Infomation Configuration

# icon

  • Type: string
  • Required: No

Set the FontClass of the current page icon (recommended)

# title

  • Type: string | boolean
  • Required: No

Current page's title. Markdown's first h1 by default.

# description

  • Type: string | boolean
  • Required: No

Current page's description

# author

  • Type: string | boolean
  • Required: No

Show the author of the current page. If you don't fill it, you will fall back to the default author.

Tips

When the global default author is enabled, you can set false to cancel the author display

# time

  • Type: string
  • Required: No
  • Format: YYYY-MM-DD or YYYY/MM/DD hh:mm:ss

Set the writing time of the current page

Note

Although this theme and other plugins of Mister-Hope will correctly parse the time you enter, such as YYYY/MM/DD hh:mm YYYY-MM-DD hh:mm YYYY/MM/DD, etc. The plugin may not be able to read them correctly. Using values in non-standard formats may cause other plugins reporting errors,

# category

  • Type: string
  • Required: No

Set the category of the current page

# tags

  • Type: string | string []
  • Required: No

Set the label of the current page

# sticky

  • Type: boolean | number
  • Default: false

Sets whether the current article is pinned in the list. When fill in with number, the ones which is greater will come first.

# article

  • Type: boolean
  • Default: true

Whether to add the article to the article list.

# timeline

  • Type: boolean
  • Default: true

Whether to add the article to the timeline list.

# password

  • Type: string
  • Required: No

Set a password for the current article.

# image

  • Type: string
  • Required: No

Set current page's image,please fill in an absolute path.

# Page display configuration

# pageInfo

  • Type: PageInfo[] | false
  • Default value: Globally configured value (global default is ['author', 'visitor', 'time', 'category', 'tag', 'readtime'])

The optional values and corresponding contents of PageInfo are as follows:

Item Corresponding Content Page Front Matter Value
'author' Author author
'time' Writing Date time
'category' Category category
'tag' Tags tags
'readTime' Expect reading time N / A (automatically generated)
'word' Word count N / A (automatically generated)
'visitor' Visit Number visitor (only available with Valine)

Set whether to show page details on the current page

# visitor

  • Type: boolean
  • Default value: Globally configured value (defaults to true after setting globalcomment to `valine ')

Whether the current page shows page views

Tips

The display pageview feature requires you to configure Valine type comment configuration correctly.

  • Type: boolean
  • Default value: Globally configured value (global default is true)

Whether path navigation is enabled on the current page

  • Type: boolean
  • Default value: Globally configured value (global default is true)

Whether path navigation icon is enabled on the current page

  • Type: boolean

The navigation bar configuration of the page, filling in false will disable the navigation bar

  • Type: false | 'auto'

Page sidebar configuration options. Supports false orauto.

# sidebarDepth

  • Type: number
  • Default: 2

The page's sidebar rendering depth

# comment

  • Type: boolean
  • Default value: Configured globally (defaults to true after configuring globalcomment)

Whether to enable comments on the current page

  • Type: boolean
  • Default value: the value configured globally

Whether to show edit link

# prev

  • Type: string | false

Previous article link

# next

  • Type: string | false

Next article link

  • Type: boolean | string | HTMLString
  • Default value: the value configured globally

Set the footer content of the current page. If you want an empty content, set it to an empty string. Set it to false if you want to disable the footer, and set it to true if you want to display the default footer on a specific page.

For more details, please see Page → Footer Support

  • Type: MediaType[] | false
  • Default: themeConfig.blog.links

Set the social link for the current page footer.

Available social media:

The optional values of MediaType are as follows:

  • 'Baidu': Baidu
  • 'Dingding': Dingding
  • 'Dribbble': Dribble
  • 'Evernote': Evernote
  • 'Facebook': Facebook
  • 'Flipboard': Flipboard
  • 'Github': ~~ Gayhub ~~ Github
  • 'Gmail': Google mailbox (of course you can also fill in your own other mailbox)
  • 'Instagram': Instagram
  • 'Line': Line
  • 'Linkedin': LinkedIn
  • 'Pinterest': Pinterest
  • 'Pocket': Pocket
  • 'QQ': QQ
  • 'Qzone': Qzone
  • 'Rss': RSS address
  • 'Steam': Steam
  • 'Taobao': Taobao
  • 'Twitter': Twitter
  • 'Wechat': WeChat
  • 'Weibo': Weibo
  • 'Whatsapp': Whatsapp
  • 'Youtube': YouTube
  • 'Zhihu': Zhihu
  • Type: boolean
  • Default value: the value configured in the global (global default is true)

Whether the current page displays search box.

# backToTop

  • Type: boolean
  • Default value: Globally configured value (global default is true)

Sets whether the current page displays the back to top button

# layout

  • Type: string

Page custom layout name