您的位置:首页 > 编程语言

使用hexo在github上搭建博客

2016-04-08 20:47 330 查看

使用hexo在github上搭建博客

说明:记录使用hexo在github.io上搭建博客的过程。

大家好!这是ruilog的测试文章。记录了用hexo在github.io上搭建自己的博客的过程。

虽然很简单,但是我还是弄了很久,真不容易。先尝试了一个简单的主题,等到遇到一个喜欢的主题再更换一个。不过现在可以先学一下怎么更换主题。

接下来打算开始写博客,记录点滴,留下轨迹。

以下内容是我的记录:

使用hexo 部署博客:

主要参考教程:

http://www.cnblogs.com/zhcncn/p/4097881.html

遇到的问题及解决方案:

hexo ERROR Deployer not found: github

安装 npm install hexo-deployer-git --save
将deploy 的 type由github改为git


基本使用方法:

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

$ hexo new "My New Post"


More info: Writing

Run server

$ hexo server


More info: Server

Generate static files

$ hexo generate


More info: Generating

Deploy to remote sites

$ hexo deploy


More info: Deployment

Ref:

http://www.jianshu.com/p/73779eacb494 (recommend)

http://www.jianshu.com/p/858ecf233db9

http://raytaylorlin.com/reading/

https://github.com/raytaylorlin/hexo-theme-raytaylorism

http://notes.iissnan.com/

http://herechen.github.io/thinking/the-keys-of-running/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  github 博客