Categories

Categories

Effects

Screenshot 2023-03-24 at 4.46.32 PM

Configuration

Create a Categories Page

Execute the following command in the Hexo root directory:

hexo new page categories

Add Categories Page to the Navigation Bar

Enable categories in the navbar configuration item of the Redefine theme configuration file _config.redefine.yml.

_config.redefine.yml
navbar:
  categories:
    Categories: #取名随意
        icon: fa-solid fa-folder #图标
        path: /categories/ #链接

(It can also be placed in a sub-menu)

Modify the Title (Optional)

The Categories page is matched based on the title: categories by default.

If you need to customize the page title, add type: categories in the Front Matter to customize the page title.