Hexo the most common commands

Source: Internet
Author: User

Hexo has about 20 commands, but ordinary users often use only a few of the following:

Hexo s
Hexo s

Launches the local server for previewing topics. Default address: Http://localhost:4000/

    • hexo sis hexo server the abbreviation, the command effect is consistent;
    • Preview can also modify the content of the article or the theme code, save after the page refresh;
    • Modifications to the Hexo root directory require the local server to be restarted _config.yml before the effect can be previewed.
Hexo New
"Learning note  Six"

Create a new article titled, 学习笔记 六 because there are spaces in the title, so enclose the quotation marks.

    • The title of the article can be changed in the corresponding MD file, the new title can be easily written.
Hexo D
Hexo D

Automatically generate site static files and deploy them to a set of warehouses.

    • hexo dis hexo deploy the abbreviation, the command effect is consistent.
Hexo Clean
Hexo Clean

Clears the cache file db.json and the generated static file public .

    • You can perform this command when the Web site displays an exception.
Hexo g
Hexo g

Generate Web site static files to the default settings public folder.

    • Easy to view static files generated by the site or manually deploy the site;
    • If you use automatic deployment, you do not need to execute the command first;
    • hexo gis hexo generate the abbreviation, the command effect is consistent.
Hexo New Page
Hexo New Page Aboutme

Create a new aboutme page titled, the default link address is主页地址/aboutme/

    • The title can be in Chinese, but generally used in English;
    • Page titles and articles can be arbitrarily modified;
    • Pages do not appear in the home Page articles list and archive, nor do they support the setting of categories and labels.

Hexo the most common commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.