# blog **Repository Path**: xiaaoke/blog ## Basic Information - **Project Name**: blog - **Description**: 博客--本仓库将拥有日记学习记录(由于部署需要认证,该博客就用于搭建) - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-09-11 - **Last Updated**: 2023-09-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ``` 常用命令 npm install hexo-cli -g // hexo的安装 hexo init blog //初始化项目 hexo clean //清空已经存在的hexo网站文件 hexo generate(可简写g) //依据网页文件和新的css样式生成新的网站文件 hexo server(可简写为s) //启动本地服务器,可以在localhost:4000查看网站修改效果 hexo new "我的第一篇文章" //创建一篇文章,根目录的source里面的md文件可以修改文章内容 npm install hexo-deployer-git --save //安装上传到仓库的插件,才能进行发布文章的命令 hexo g --d //发布文章 一键部署并推送到gitee仓库上 hexo g 和 hexo d 更新仓库 ``` [hexo文档](https://hexo.io/zh-cn/)