如何添加新博客
使用 Hexo 添加新博客 打开终端并导航到你的 Hexo 博客目录。 运行以下命令来创建新博客文章: 1hexo new "你的博客标题" 这将在 source/_posts 目录下创建一个新的 Markdown 文件。 打开该文件并编辑你的博客内容。 保存文件后,运行以下命令生成静态文件并启动本地服务器预览: 12hexo generatehexo server 打开浏览器并访问 http://localhost:4000 查看你的新博客文章。 部署你的博客 确保你已经生成了静态文件: 1hexo generate 运行以下命令将文件部署到你的博客托管平台(例如 GitHub Pages): 1hexo deploy 根据你的 Hexo 配置文件 _config.yml 中的部署设置,Hexo 会自动将生成的静态文件推送到指定的仓库或服务器。 完成后,你可以访问你的博客网址查看最新的博客文章。
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
