Config
hostname
Type:
stringRequired: Yes
Details:
Deploy hostname.
author
Type:
Authortype AuthorName = string interface AuthorInfo { /** * Author name */ name: string /** * Author website */ url?: string /** * Author email */ email?: string } type Author = AuthorName | AuthorName[] | AuthorInfo | AuthorInfo[]Required: No
Details:
Default author.
autoDescription
Type:
booleanDefault:
trueDetails:
Whether generate description automatically
canonical
Type:
string | ((page: Page) => string | null)Details:
Canonical link
fallBackImage
Type:
stringDetails:
Fallback Image link when no image are found
restrictions
Type:
stringDetails:
The age rating of the content, the format is
[int]+, such as"13+".
twitterID
Type:
stringDetails:
Fill in your twitter username.
isArticle
Type:
(page: Page) => booleanDetails:
Use this option to judge whether the page is an article.
ogp
Type:
function ogp( /** OGP info inferred by plugin */ ogp: SeoContent, /** Page Object */ page: Page, /** VuePress App */ app: App, ): SeoContentRequired: No
Details:
Custom OPG Generator.
You can use this options to edit OGP tags.
jsonLd
Type:
function jsonLd( /** JSON-LD Object inferred by plugin */ jsonLD: ArticleSchema | BlogPostingSchema | WebPageSchema, /** Page Object */ page: Page, /** VuePress App */ app: App, ): ArticleSchema | BlogPostingSchema | WebPageSchemaRequired: No
Details:
Custom JSON-LD Generator.
You can use this options to edit JSON-LD properties.
customHead
Type:
function customHead( /** Head tag config */ head: HeadConfig[], /** Page Object */ page: Page, /** VuePress App */ app: App, ): voidRequired: No
Details:
You can use this options to edit tags injected to
<head>.
