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:
Use the following command in the root directory of the Hexo project to create an
about
page.$ hexo new page about
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>
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.
Last updated