从创建到部署
新建文章
1 | $ hexo n "博客使用指南" |
More info: Writing
清除缓存
1 | $ hexo clean |
清除缓存文件 (db.json
) 和已生成的静态文件 (public
)。
在某些情况(尤其是更换主题后),如果发现您对站点的更改无论如何也不生效,您可能需要运行该命令。
生成静态文件
1 | $ hexo g |
More info: Generating
启动服务器
1 | $ hexo s |
默认情况下,访问网址为: http://localhost:4000/
More info: Server
部署网站
1 | $ hexo d |
More info: Deployment
设置标签
方法1
1 | tages: |
方法2
1 | tages: [标签1,标签2,...标签n] |
手动设置文章时间
直接在文章开头设置发表/更新时间:
1 | date: 2021-09-03 15:02:51 |