Basic Usage of Hexo

Basic Usage of Hexo

Writing

To create a new post or new page, run the following command:

1
$ hexo new [layout] <title>

Markdown

Configuration Options Default Description
title Markdown document title
date date when the file is created
author same as the author in _config.yml Blogger
img value in featureunages Article feature map: http://xxx.com/xxx.jpg
top true Recommended articles (whether the article is pinned to the top)
password n.a. the password need to read the article
toc true Whether to enable TOC, you can turn off the TOC function individually for a certain article. The premise is that the toc option is activated in the theme’s config.yml
summary n.a. Article summary, customized article summary content. If this attribute has a value, the article card summary will display this text. Otherwise, the program will automatically intercept part of the article as a summary.
mathjax true Whether to enable mathematical formula support, this article whether to enable mathjax, and it needs to be enabled in the theme’s _config.ymlfile.
categories
tags
keywords
reprintPolicy Cc_by cc_by, cc_by_nd, cc_by_sa, cc_by_nc, cc_by_nc_nd, cc_by_nc_sa, cc0, noreprint or pay
作者

Song Chen

发布于

2023-10-06

更新于

2023-10-26

许可协议

评论