VuePress EcosystemVuePress Ecosystem
  • Theme Guidelines
  • theme-default
  • Hope Theme
  • Plume Theme
  • Reco Theme
  • Feature Plugins
  • Markdown Plugins
  • Search Plugins
  • Blog Plugins
  • PWA Plugins
  • Analytics Plugins
  • SEO Plugins
  • Development Plugins
  • Tool Plugins
  • AI Plugins
  • @vuepress/helper
  • English
  • 简体中文
GitHub
  • Theme Guidelines
  • theme-default
  • Hope Theme
  • Plume Theme
  • Reco Theme
  • Feature Plugins
  • Markdown Plugins
  • Search Plugins
  • Blog Plugins
  • PWA Plugins
  • Analytics Plugins
  • SEO Plugins
  • Development Plugins
  • Tool Plugins
  • AI Plugins
  • @vuepress/helper
  • English
  • 简体中文
GitHub
  • SEO
    • Guide
    • Config
  • Sitemap
    • Guide
    • Config
    • Frontmatter

Config

hostname

  • Type: string

  • Required: Yes

  • Details:

    Deploy hostname.

author

  • Type: Author

    type AuthorName = string
    
    interface AuthorInfo {
      /**
       * Author name
       */
      name: string
    
      /**
       * Author website
       */
      url?: string
    
      /**
       * Author email
       */
      email?: string
    }
    
    type Author = AuthorInfo | AuthorInfo[] | AuthorName | AuthorName[]
  • Details:

    Default author.

autoDescription

  • Type: boolean

  • Default: true

  • Details:

    Whether generate description automatically

canonical

  • Type: string | ((page: Page) => string | null)

  • Details:

    Canonical link

fallBackImage

  • Type: string

  • Details:

    Fallback Image link when no image are found

restrictions

  • Type: string

  • Details:

    The age rating of the content, the format is [int]+, such as "13+".

twitterID

  • Type: string

  • Details:

    Fill in your twitter username.

isArticle

  • Type: (page: Page) => boolean

  • Details:

    Use this option to judge whether the page is an article.

ogp

  • Type:

    function ogp(
      /** OGP info inferred by plugin */
      ogpInfo: SeoContent,
      /** Page Object */
      page: Page,
      /** VuePress App */
      app: App,
    ): SeoContent
  • 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 | WebPageSchema
  • 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,
    ): void
  • Details:

    You can use this options to edit tags injected to <head>.

Edit this page on GitHub
Last Updated: 6/3/25, 4:33 PM
Contributors: Mister-Hope, meteorlxy, pengzhanbo
Prev
Guide