🇨🇦
hexo-theme-redefine
BlogGithub
English
English
  • Project Description
  • Get Started
    • Installation
    • Update
    • Usage
  • Configuration
    • Create a theme config file
    • base_info
    • style
      • primary_color
      • avatar
      • favicon
      • article_img_align
      • left_side_width
      • content_max_width
      • nav_color
      • hover
      • first_screen
      • scroll
    • social_contact
    • menu
    • home_article
    • post
      • word_count
      • author_label
    • toc
    • copyright_info
    • website_count
    • local_search
    • comment
      • use
      • Waline
      • Gitalk
      • Twikoo
    • rss
    • lazyload
    • cdn
    • pjax
    • footer
  • Advanced
    • Create a page
    • Note modules
    • Article top
    • Mathematical formula
    • Friendship style
    • file comparison
    • Resource compression
Powered by GitBook
On this page
  1. Configuration

toc

Previousauthor_labelNextcopyright_info

Last updated 2 years ago

toc:
  enable: true

  # Automatically add list number to toc.
  number: false

  # If true, all levels of TOC in a post will be displayed, rather than the activated part of it.
  expand_all: true

  # If true, open TOC whenever you enter the article page
  init_open: true

This configuration item is used to set the TOC directory structure of the article. It is a very practical function. You can quickly view the article directory structure and jump. It is recommended to enable it.

Screen Shot 2022-10-02 at 10.11.31 AM
  • number automatically numbers the directory structure

  • expand_all expands all directory structures

    • expand_all: true automatically expands all directory structures

    • expand_all: false expand the directory of the corresponding position while scrolling the page

  • init_open whether to automatically open the TOC directory structure when opening the article page

number: false

number: true

Screen Shot 2022-10-02 at 10.12.54 AM
Screen Shot 2022-10-02 at 10.13.38 AM