🇨🇦
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. Advanced

Create a page

**In the initial state of the Hexo project, there are no categories (categories), tags (tags), links (friendship chains), about (about), or other pages, you need to create them manually. **

Take creating an "about" page as an example:

  1. Use the following command in the root directory of the Hexo project to create an about page.

    $ hexo new page about
  2. After the creation is successful, open the hexo/source/about/index.md file in the root directory of the Hexo project to fill in the content of the about page. Markdown and HTML formats are supported.

    ::: tip comment: true indicates that the comment function is enabled for this page. :::

    Refer to the following example:

    ---
    title: about
    date: 2020-03-19 14:59:53
    comment: true
    ---
    
    # About me
    
    <div style="color: red;">About me</div>
  3. Enable the about navigation menu in the theme configuration file _config.yml.

    menu:
      Home: /
      About: /about
      # ...

The other pages are created in a similar way to the "about" page, so I won't repeat them here.

PreviousfooterNextNote modules

Last updated 2 years ago