hexo publish article

How to create a new article and publish it to hexo blog?

生成文章

1
hexo new <title>

执行该命令,Hexo会在/source/_posts目录下创建一篇新的文章:

  • 文章开头配置项:
配置项 意义
title 网页文章标题
date 文章创建如期
comments 文章评论功能是否启动
tags 文章标签
categories 文章分类
keywords 文章关键字

发布文章

  1. 清除缓存
1
hexo clean
  1. 生成预览
1
hexo g #生成
1
hexo s #本地预览,http://localhost:4000/
  1. 上传
1
hexo d #上传到github

hexo publish article
http://example.com/2024/06/30/hexo-publish-article/
作者
LSL
发布于
2024年6月30日
许可协议