简历
准备中…
准备中…
http://blog.csdn.net/gdutxiaoxu/article/details/53576018
yilia https://github.com/litten/hexo-theme-yilia.git
NexT https://github.com/iissnan/hexo-theme-next.git
http://blog.csdn.net/xuezhisdc/article/details/53130383
新建文章1
hexo new post "article title"
生成部署1
2
3
4hexo g # 生成
hexo d # 部署
# 或直接
hexo d -g # 在部署前先生成
部署:将生成在public文件夹内的文件复制到deploy.git内后,自动推送到git,自动部署需要安装插件,并配置发布地址等
新建文章的 命名、分类、标签:不能包含#符号,Github上面会404,其他的\/.?之类的应该也不行,-_以及数字是可以的
自定义页面,不渲染
hexo跳过指定文件的渲染
在_config.yml文件中设置skip_render,都是相对source目录的路径:
跳过source目录下的test.html:
1 | * 跳过`source`目录下`test`文件夹内所有文件: |
跳过source目录下test文件夹内所有文件包括子文件夹以及子文件夹内的文件:
1 | * 跳过多个路径: |
_post文件夹下是可以新建自己的文件夹的jsFiddle
在文章中嵌入 jsFiddle。1
{% jsfiddle shorttag [tabs] [skin] [width] [height] %}
Gist
在文章中嵌入 Gist。1
{% gist gist_id [filename] %}
iframe
在文章中插入 iframe。1
{% iframe url [width] [height] %}
Image
在文章中插入指定大小的图片。1
{% img [class names] /path/to/image [width] [height] [title text [alt text]] %}
Link
在文章中插入链接,并自动给外部链接添加 target=”_blank” 属性。1
{% link text url [external] [title] %}
c#标记无效):cs、csharp*:*这种):yml强制更新覆盖本地
1 | git fetch --all # 下载最新文件(未覆盖) |
分支变更回退
1 | $ git reflog # 所有分支的所有操作记录 |
删除已纳入版本控制,并后添加到.gitignore的文件(注意.)
1 | git rm -r --cached . |
修改已commit备注
1 | git commit --amend |
a进入插入模式 > 修改 > Esc > 输入:wq,保存退出