第一篇博客
##
费了两天劲,总算弄了个大概,写一篇记录下用hexo和github搭建个人博客的心得:
- 先安装Node.js、Hexo、Git;
- 新建博客:
hexo n <NAME>
用MarkdownPad 2编辑文章; - _config.yml文件格式要求很高,冒号后面要有空格不然会报错;
- _config.yml最好用Sublime Text编辑,记事本编码方式有误;
- 生成:
hexo g
; - 部署到电脑:
hexo s --debug
用于调试,可在浏览器直接刷新; - 部署到github:
hexo d
;
##

- MarkdownPad 2不能传本地图片,但是可以把本地图片直接拖拽上传,返回一个在线链接;
- HTML的语法在这特么的也能用;
- hexo毕竟是静态页面,没有数据库和PHP,简单许多;
- NexT这个主题是真的功能齐全。
喜欢的话可以页面最下面点击Donate打赏给我
欢迎评论,技术交流请邮件至colinguo0919@gmail.com
##
Markdown is a lightweight markup language based on the formatting conventions that people naturally use in email. As [John Gruber] writes on the [Markdown site][df1]
The overriding design goal for Markdown’s
formatting syntax is to make it as readable
as possible. The idea is that a
Markdown-formatted document should be
publishable as-is, as plain text, without
looking like it’s been marked up with tags
or formatting instructions.
This text you see here is actually written in Markdown! To get a feel for Markdown’s syntax, type some text into the left window and watch the results in the right.