Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 2.19 KB

page-info.md

File metadata and controls

46 lines (29 loc) · 2.19 KB
title icon
Page information
info

The <PageInfo /> component is enabled globally by default. You can disable it by setting pageInfo: false in Front Matter of a specific page.

To keep it globally disabled, please set pageInfo to false in the plugin options. In this way you can set pageInfo in Front Matter of a specific page to enable it locally.

Parameters

pageInfo accepts an array of strings by default, filling in a group of items. The order of filling is the order in which the items are displayed.

The optional values ​​and corresponding contents of the entry are as follows:

Entry Corresponding content page frontmatter value
'Author' author author
'Time' Writing Date time
'Category' Category category
'Tag' tags tags
'ReadTime' Estimated reading time N / A (automatically generated)
'Word' Word count N / A (automatically generated)
'Visitor' Visits visitor (only Valine is available)

By default it will display "Author, Visit Number, Writing Date, Category, Tags, Expect Reading Time".

::: tip Other notes

  • author

You can configure author in the plugin options to set the default author. And you can also configure author in frontmatter with a new value in the page to override the default author, or set it to false to cancel the author display.

  • time

It is recommended to fill it with a standard date format. A standard format is in the form of xxxx-xx-xx, such as "April 1, 2020" should be written as 2020-04-01.

  • Reading time

The default statistic method is 300 words per minute. You can override it by setting wordPerminute in the plugin configuration. This option does not support individual configuration on the page.

:::

Original logo

You can set original to true in the frontmatter of a specific page to add original tags to your articles.