Hexo博客搭建基础教程
Node的安装
打开Node官网,下载和自己系统相匹配的Node安装程序。官网下载地址:https://nodejs.org/en/download
安装选择默认即可。安装目录安装完后,
注册Github
进入官网https://github.com/
点击Sign up进行注册
填写自己的相关信息,验证邮箱完成注册
注册完,登录之后,点击右上角(头像旁边的+),选择New repository,创建一个 <用户名>.github.io 的仓库
填写描述,添加Add a README file,点击Create repository
安装Git
在Windows上安装Git,进入官网:https://git-scm.com/downloads ,由于官网下载太慢可以通过淘宝的开源镜像下载 网址:https://registry.npmmirror.com/binary.html?path=git-for-windows/v2.36.1.windows.1/ ,下载版本更具自己的需求选择即可。
安装选择默认即可。安装目录安装完后,
在开始菜单里找到“Git Bash”,点 ...
Welcome to WereAsh's Blog
欢迎来到的WereAsh的博客主页
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