使用Jekyll/Hexo/Pelican+Coding.net和Github搭建自己的静态个人网站

###故事背景:
作为一个高逼格的码农(学者), 怎能没有一个绚丽的个人网站?
当然简书已经充分满足了我写作的环境,只不过这也是我一直以来的想法。
要想当年, 用ik8和9k的免费空间搭了一个其丑无比但是功能还算健全的个人网站。但是囿于年久失修,免费空间全军覆没, 个人网站也早就木有了。 这回借着改革的春风和Github的Page服务(其实已经有了好久了,但是我一直木有时间填坑),寻思着抽这段时间的空,把这个坑填上。

###正文
其实框架上的想法很早就有了就是利用Github的Page服务(码市也有类似服务,回头搞), 利用静态框架进行搭建。 域名很早以前就已经申请了,yansi.me, 还是比较满意的。 从实名认证到备案(还好以前有过备案记录), 总之还是依旧繁琐, 不过好在搞定了。 之后就是做解析,
各种A记录和CNAME, 搞定之后就上网搜文章。像我这样,肯定是首先做个横评了。

Jekyll是基于Ruby的(一看是基于Ruby的,我直接放弃了(不是说Ruby不好哈, 是哥我要求高)),Hexo基于Node.js,之后还听说了一个叫Pelican的,是基于Python的(有空再搞)。
三者都是用于搭建静态页面网站的框架,选自己喜欢的就好。
我是从Hexo试起的,网上已经有很多文章了, 先做一下汇总, 具体链接在文章末尾(我在想,要不要把链接做得美观点, 比如藏在文字背后, 听大家的意见)。

技术上我补充几点:

  1. 如果4000端口被占用, 可以用该命令切换到5000:

    hexo server -p 5000```
    1
    2. 如果使用Yilia主题,还需要在博客根目录运行:```npm i hexo-generator-json-content --save
  2. 由于不同系统换行符的问题, 如果报关于LF的错误,可以运行以下语句:
    git config --global core.autocrlf false

微信打开的话需要点一下继续访问就可以了。 留言功能还没加, 欢迎。。。额。。。在公众号后台给我提出宝贵意见。

各种教程汇总:
(http://blog.csdn.net/qq_31655965/article/details/53172143)
(http://threehao.com/2016/08/22/Github%20Pages%20+%20Hexo/)
(https://www.v2ex.com/t/264283)
(https://zhuanlan.zhihu.com/p/22191919)
(http://www.jianshu.com/p/6c76e668b6ce)
(http://www.jianshu.com/p/35e197cb1273)
(http://www.jianshu.com/p/5dcb39ba668b)
(http://www.jianshu.com/p/43dca792e3cd)
(http://www.jianshu.com/p/465830080ea9)
(http://www.jianshu.com/p/e99ed60390a8)
(http://www.jianshu.com/p/05289a4bc8b2)
(https://www.cnblogs.com/liuxianan/p/build-blog-website-by-hexo-github.html)
(http://www.cnblogs.com/zhcncn/p/4097881.html)
(https://segmentfault.com/a/1190000006831597)

主题汇总:
(https://github.com/MOxFIVE/hexo-theme-yelee)
(https://github.com/luuman/hexo-theme-spfk)
(https://github.com/yscoder/hexo-theme-indigo)
(https://github.com/hexojs/hexo/wiki/Themes)
(https://github.com/raytaylorlin/hexo-theme-raytaylorism)
(https://github.com/LouisBarranqueiro/hexo-theme-tranquilpeak)
(https://github.com/viosey/hexo-theme-material)

官方主题集:
(https://github.com/hexojs/hexo/wiki/Themes)

可以参考Hexo的官方文档:
(https://hexo.io/docs/deployment.html)

<! — 更多 —>

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