Hexo Web 静态网站搭建过程

欢迎来到 Hexo! 本文主要介绍基于Hexo的个人静态网站国关到Github的过程. 操作过程进行的还算顺利,就是在切换仓库用户的时候遇到一些小麻烦。

搭建过程中参考过的网站:

搭建个人博客-hexo+github详细完整步骤: https://www.jianshu.com/p/189fd945f38f
Hexo常用命令笔记:https://segmentfault.com/a/1190000002632530
GitHub “remote: Permission to account/somefile.git denied to account”:http://blog.csdn.net/Lrici/article/details/76169327
window下配置SSH连接GitHub、GitHub配置ssh key: https://www.cnblogs.com/hukai46/p/5489631.html

Git + Node.js + Hexo + Github 搭建静态个人博客详细步骤

下载和安装 Git

Git 下载地址: http://gitforwindows.org/

Windows 下 git的安装非常简单,只需要直接双击执行,除以下两步骤外其余一路默认.

image

image

Linux下安装git可以参考响应的博客文档:http://blog.csdn.net/qq282330332/article/details/51855252,以Ubuntu为例,终端输入:

1
$ sudo apt-get install git

测试Git是否安装成功:

1
$ git

配置git用户名和邮箱,之后就可以使用Git工具了:

1
2
$ git config --global  user.name "your github account name"
$ git config --global user.email "your registered github email"

下载和安装Node.js

  1. Node.js 下载地址: https://nodejs.org/en/
  2. 安装非常简单,一路默认就行(Linux下的安装可以参考相关文档);
1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

cuarma


title: 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 Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

,