美文网首页Linux新手指北
创建自己的博客——Github.com

创建自己的博客——Github.com

作者: imrdr | 来源:发表于2017-09-23 08:57 被阅读0次

install Node.js git

  • install Node.js
    • install nvm

    wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
    + nvm install stable

  • install Git
    sudo apt-get install git

Install Hexo

npm install -g hexo-cli
npm install hexo-deployer-git --save

use Hexo

  • init
hexo init <folder>
cd <folder>
npm install
  • new
    hexo new [layout] <title>

  • generate
    hexo generate

  • deploy
    hexo deploy

use github.username.io

  • 创建仓库username.github.io

    • 登录github.com
    • 创建仓库username.github.io

    username是你的用户名,必须按此格式创建仓库

  • 在本机config git

git config -l
git config user.name myusername@126.com
git config user.email myusername@126.com
git remote add origin https://github.com/myusername/myusername.github.io.git
  • vim ./_config.yml
lang: zh-CN
type: git 
repo: https://github.com/myusername/myusername.github.io.git 
branch: master
  • deploy to github.io
hexo g
hexo s
hexo d
# input username
# input password for username

https://hexo.io/docs/configuration.html

相关文章

  • 创建自己的博客——Github.com

    install Node.js git install Node.jsinstall nvmwget -qO- h...

  • 搭建个人博客

    注册GitHub账号 地址:https://github.com/ 创建博客 根据:用静态页面生成静态博客 个性化...

  • 利用Github创建自己的博客

    tags: Github Hexo NexT Use Github to create your own blog...

  • github上创建个人博客

    玩github标准打卡动作就是创建个人博客,今天我们就来创建个博客。偶尔在博客上更新下文章,将来遇到给别人展示自己...

  • hexo 搭建

    hexo 搭建自己的私人博客hexo 搭建自己的私人博客登录github地址 创建并登录自己的github账号 创...

  • github提交本地代码

    1.去github上创建自己的帐号https://github.com/ 2.去github上创建自己的Repos...

  • 2018-12-17

    今天开始写博客。 自己创建博客有些浪费时间,就把简书当作博客来写吧。

  • Hexo-部署GitHub-域名

    学会怎么使用Hexo创建一篇博客,同时部署在GitHub,然后关联自己买的域名~ 1、创建博客2、提交到GitHu...

  • 使用Github创建自己的小博客

    懒人攻略 只有四步: 找到自己喜欢的别人的博客的Github地址,一般为username.github.io结尾。...

  • CocoaPods创建自己的Pod

    本地创建自己的Pod 在GitHub上为自己的Pod创建一个新的仓库:https://github.com/Mob...

网友评论

    本文标题:创建自己的博客——Github.com

    本文链接:https://www.haomeiwen.com/subject/gzoqextx.html