Theme Layout Config

Mr.Hope ... Config
  • ThemeConfig
  • Config
Less than 1 minute

The following are appearance configuration options provided by the theme. In general, you do not need to config them, they are provided for users who need them.

# algoliaType

  • Type: "dropdown" | "full"
  • Default: "dropdown"

Algolia SearchBox type

# iconPrefix

  • Type: string
  • Default: 'icon-'

Set iconfont icon prefix

# anchorDisplay

  • Type: boolean
  • Default: true

Whether display anchor in desktop mode

# wordPerminute

  • Type: number
  • Default value: 300

Words reading per minute

  • Type: "always" | "mobile" | "none"
  • Default: "mobile"

Whether to hide navbar when scrolling down

# sidebarIcon

  • Type: boolean
  • Default: true

Whether to show icons in the sidebar

  • Type: boolean
  • Default: true

Whether to enable route navigation globally

  • Type: boolean
  • Default: true

Whether to show icons in route navigation

# smoothScroll Default value changed

  • Type: boolean
  • Default: true

Whether to enable smooth scrolling

# backToTop

  • Type: boolean | number
  • Default: true

Back to top button configuration. The default trigger distance is 300px, which can be changed when you fill in the number. Filling in false disables the back to top button.

# repoDisplay

  • Type: boolean
  • Default: true

Whether to display the warehouse link in the navigation bar

# fullscreen

  • Type: boolean
  • Default: true

Whether to show the "full screen" button

Last update: November 26, 2020 09:05