git version 2.18.0.windows.1

node-v10.8.0-win-x64.zip

1 安装node.js,直接下载,配置环境变量即可(win10重启生效)

2 git安装,略,安装完直接启动Git Bash即可,git配置略(用户名,邮箱,配置github上的sshkey)

3 安装hexo(就是一个blog)流程

国外的NPM源并不稳定,即使翻墙也不一定能将Hexo下载下来,所以这里直接更改为淘宝源。
$ npm config set registry https://registry.npm.taobao.org npm info underscore

安装hexo
$ npm install -g hexo-cli

创建hexo工程
$ hexo init blog
hexo i blog //init的缩写 blog是项目名

cd blog //切换到站点根目录

新建POST
$ hexo n “Test”
进入初始化后的hexo文件夹,创建名为HelloWorld的文件,此时会在/blog/sources/_post/目录下生成Test.md文件。

hexo g //generetor的缩写 静态编译
hexo s //server的缩写 启动本地服务器

到此本地blog安装完毕

4 配置下github

新建一个response

名称必须是用户名.github.io

建立完毕后地址就是https://github.com/OnafioO/OnafioO.github.io.git

5上传代码到github

把新建的blog文件夹下的_config.yml打开

把最后一行改为

deploy:
type: git
repo: https://github.com/OnafioO/OnafioO.github.io.git

安装插件

npm install hexo-deployer-git --save

hexo d 发布(上传)

6 新写页面上传(一条新blog)

hexo n "newpage"

开发这个newpage

然后进入blog文件夹

hexo g 生成静态页

hexo d 发布

就完成上传

主页地址(https://onafioo.github.io/)可以在任意response/setting/GitHub Pages  处找到

https://blog.csdn.net/Hoshea_chx/article/details/78826689

https://www.jianshu.com/p/3217ecf4a789

https://www.cnblogs.com/EX32/p/4479712.html

github blog的更多相关文章

  1. 个人github blog环境设置

    每个人都想拥有自己的网站,但是大部分比较屌丝,不想花钱租赁服务器,哈哈,屌丝有屌丝办法.github应该都听说过吧,github.io提供了此功能,而且使用github来管理自己的代码,如果你有域名, ...

  2. GitHub Blog创建以及本地管理(转)

    GitHub Blog创建以及本地管理   创建 注册GitHub账户 首页点击新建仓库 New repository repository name必须为 Owner.github.io EX:我的 ...

  3. jekyll bootstrap搭建github blog

    前提你必须有一个GitHub账号且本机安装有Git 一.创建一个新的仓库 去你的https://github.com主页新建一个仓库 名字为USERNAME.github.com USERNAME为你 ...

  4. Hello, Github Blog

    hello, I am using github to write a post, I am so exciting- 原文地址: http://vblog.vell001.ml/2014/03/08 ...

  5. Github Blog 搭建手册

    http://www.ilehao.com/blog/2012/11/11/github-blog-config/ http://www.freebuf.com/articles/web/25613. ...

  6. GitHub Blog创建以及本地管理

    创建 注册GitHub账户 首页点击新建仓库 New repository repository name必须为 Owner.github.io EX:我的Owner下为pualus,那么就应为pua ...

  7. Github使用指南-从新手到专家

    转载自:http://www.cnblogs.com/xirongliu/p/4589834.html 个人从刚刚开始接触github,啥都不知道,不会用,不知道能够用来干什么,到现在坚持在githu ...

  8. 使用GitHub进行团队合作

    原文: Team Collaboration With GitHub GitHub已经成为的一切开放源码软件的基石.开发人员喜欢它,基于它进行协作,并不断通过它开发令人惊叹的项目.除了​​代码托管,G ...

  9. 转:怎么使用github(通俗易懂版)

    转:  https://www.zhihu.com/question/20070065 作者:珊姗是个小太阳链接:https://www.zhihu.com/question/20070065/ans ...

随机推荐

  1. Redis 集群之 Redis-Cluster

    Redis集群官方推荐方案 Redis-Cluster 集群 redis cluster 通过分片实࣫容量扩展 通过主从复制实࣫节点的高可用 节点之间互相通信 每个节点都维护整个集群的节点信息 red ...

  2. Android 4学习(4):概述 - Using Resources

    参考:<Professional Android 4 Application Development> Andorid中的资源包括用户自定义资源和系统自带资源,这两种资源既可以在代码中使用 ...

  3. Microsoft Office Visio 2010如何创建UML 用例图

    转自:https://blog.csdn.net/mmoooodd/article/details/10513059 1..在Microsoft Office2010中打开Microsoft Visi ...

  4. 使用/dev/dsp的wav文件播放器源码

    转载于:http://blog.csdn.net/dux003/article/details/5459423 #include #include #include #include #include ...

  5. The Independent JPEG Group's JPEG software Android源码中 JPEG的ReadMe文件

    The Independent JPEG Group's JPEG software========================================== README for rele ...

  6. UAC(User Agent Client) 和 UAS(User Agent Server)

    SIP协议采用Client/Server模型.每一个请求(Request)触发服务器的一个操作:每个操作被称为方法(Method):每个请求除了指明具体方法外,还携带了一系列的头域(Header fi ...

  7. 正确的停止java中的线程

    stop()方法不是一个正确的停止线程方法. 正确的停止方法:设置退出旗标

  8. 巧用cssText属性

    给一个HTML元素设置css属性,如 1 2 3 4 var head= document.getElementById("head"); head.style.width = & ...

  9. JAVA中string类的split方法

    split([separator,[limit]])第一个参数为分隔符,可以是一个正则表达式,第二个参数为返回结果数组的长度

  10. [转]AJAX工作原理及其优缺点

    1.什么是AJAX?AJAX全称为“Asynchronous JavaScript and XML”(异步JavaScript和XML),是一种创建交互式网页应用的网页开发技术.它使用:使用XHTML ...