当前位置: 首页 > news >正文

住房与城乡建设部网站注册中心广州百度推广电话

住房与城乡建设部网站注册中心,广州百度推广电话,做类似淘宝一样的网站,小制作手工视频使用Hexo在Github上搭建个人博客 1. 安装Node和git2. 安装Hexo3. Git与Github的准备工作4. 将Hexo部署到Github5. 开始写作 1. 安装Node和git 在Mac上安装Node.js可以使用Homebrew,使用以下命令安装: brew install node使用以下命令安装Git: …

使用Hexo在Github上搭建个人博客

  • 1. 安装Node和git
  • 2. 安装Hexo
  • 3. Git与Github的准备工作
  • 4. 将Hexo部署到Github
  • 5. 开始写作

1. 安装Node和git

  1. 在Mac上安装Node.js可以使用Homebrew,使用以下命令安装:

    brew install node
    
  2. 使用以下命令安装Git:

    brew install git
    
  3. 可以在终端中使用以下命令验证是否安装成功:

    git version
    node -v
    npm -v
    
  4. 安装完成后,需要进行一些基本的Git配置,如设置用户名和邮箱等。使用以下命令进行配置:

    git config --global user.name "Your Name"
    git config --global user.email "your_email@example.com"
    

    其中,Your Name是你的用户名,your_email@example.com是你的邮箱地址。

2. 安装Hexo

  1. 在安装hexo之前,需要先安装hexo-cli,使用以下命令安装:

    npm install -g hexo-cli
    
  2. 安装完成后,就可以使用hexo命令了。接下来,使用以下命令安装hexo:

    npm install -g hexo
    
  3. 安装 Hexo 后,执行下列命令,Hexo 将会在指定文件夹中新建所需要的文件。

    hexo init myBlog
    cd myBlog
    npm install
    

    其中,myblog是你的博客目录,可以根据自己的需要修改。

  4. 新建完成后,指定文件夹的目录如下:

    .
    ├── _config.yml # 配置信息,可以在此配置大部分的参数
    ├── package.json
    ├── scaffolds # 模版文件夹
    ├── source  # 资源文件夹,除 _posts 文件,其他以下划线_开头的文件或者文件夹不会被编译打包到public文件夹
    |   ├── _drafts # 草稿文件
    |   └── _posts # 正式发布文件 
    └── themes  # 主题文件夹
  5. 在初始化完成后,就可以启动hexo了。使用以下命令启动hexo:

    hexo server
    

    hexo s
    
  6. 在浏览器中输入http://localhost:4000,即可预览博客效果。

3. Git与Github的准备工作

  1. 使用如下命令生成公钥和私钥:

    ssh-keygen -t rsa -C "your email address"
    
  2. 打开.ssh/id_rsa.pub,得到公钥(类似如下形式):

    ssh-rsa AAAAxxxxxxx0qRbzSBvr8Nl5GybYjM4uvjNzAkk94GBTgu3MKouPPxQrhFv+FAqBM0ZG1swW2GwqlvX+bbN1NbbESUi8CPMaxO5dbsjZTydbuG8jb4eCkQv2Y7yTANBFzGtncehyElGkkBDmbSxa6xxxxnml1fk= jixxxxxxng@oxxxxk.com
    
  3. 粘贴到Github的如下位置:在这里插入图片描述

  4. 在Github上新建一个repo,并在repo的settings界面,将site设置为your_name.github.io;

4. 将Hexo部署到Github

  1. 在本地博客文件夹下找到_config.yml打开,将里面的deploy部分改为以下内容:

    deploy:type: git  repository: git@github.com:/your-name/your-name.github.io.git  branch: main
    
  2. 使用以下命令安装hexo-deployer-git插件:

    npm install hexo-deployer-git --save
    
  3. 在博客目录下,使用以下命令生成静态文件:

    hexo generate 
    
  4. 使用以下命令将生成的静态文件部署到Github:

    hexo deploy
    

    部署完成后,可以访问https://your-name.github.io/来访问你的博客。

5. 开始写作

  1. 新建文章,输入以下命令即可

    hexo new '文章标题'
    
  2. 执行完成后可以在 source文件夹里的_posts 下看到一个“文章标题.md”的文件。

  3. 写完博客后,执行4.3和4.4即可将博客部署到Github。

  4. 如果有缓存导致更改不生效,可以先执行

    hexo clean
    

    再进行部署。


文章转载自:
http://sceneshifter.bbrf.cn
http://banknote.bbrf.cn
http://torture.bbrf.cn
http://fraud.bbrf.cn
http://polyglottery.bbrf.cn
http://homospory.bbrf.cn
http://osnaburg.bbrf.cn
http://gnatcatcher.bbrf.cn
http://trichome.bbrf.cn
http://writing.bbrf.cn
http://acarpellous.bbrf.cn
http://weirdly.bbrf.cn
http://gavage.bbrf.cn
http://diaphoresis.bbrf.cn
http://tier.bbrf.cn
http://devotee.bbrf.cn
http://clayware.bbrf.cn
http://thornbush.bbrf.cn
http://hate.bbrf.cn
http://surfie.bbrf.cn
http://embarcadero.bbrf.cn
http://riverfront.bbrf.cn
http://shlub.bbrf.cn
http://labouratory.bbrf.cn
http://gleety.bbrf.cn
http://altar.bbrf.cn
http://diether.bbrf.cn
http://methaemoglobin.bbrf.cn
http://ccd.bbrf.cn
http://relatively.bbrf.cn
http://disseise.bbrf.cn
http://elfish.bbrf.cn
http://somnambulance.bbrf.cn
http://excommunicable.bbrf.cn
http://hobodom.bbrf.cn
http://fount.bbrf.cn
http://ulvaespinel.bbrf.cn
http://andantino.bbrf.cn
http://dinnerware.bbrf.cn
http://confusedly.bbrf.cn
http://aegisthus.bbrf.cn
http://chromosphere.bbrf.cn
http://safeblowing.bbrf.cn
http://vote.bbrf.cn
http://eptitude.bbrf.cn
http://cycloid.bbrf.cn
http://truncal.bbrf.cn
http://loquat.bbrf.cn
http://dimenhydrinate.bbrf.cn
http://liechtenstein.bbrf.cn
http://soundscriber.bbrf.cn
http://declaimer.bbrf.cn
http://sleepy.bbrf.cn
http://multilane.bbrf.cn
http://femininity.bbrf.cn
http://maintopsail.bbrf.cn
http://transpolar.bbrf.cn
http://grey.bbrf.cn
http://philhellene.bbrf.cn
http://brunizem.bbrf.cn
http://derate.bbrf.cn
http://kbl.bbrf.cn
http://shipbreaker.bbrf.cn
http://fontainebleau.bbrf.cn
http://precipitantly.bbrf.cn
http://despotism.bbrf.cn
http://canella.bbrf.cn
http://heibei.bbrf.cn
http://gunn.bbrf.cn
http://turrical.bbrf.cn
http://choroideremia.bbrf.cn
http://khapra.bbrf.cn
http://mystery.bbrf.cn
http://heartache.bbrf.cn
http://berberine.bbrf.cn
http://sherry.bbrf.cn
http://riverain.bbrf.cn
http://gittern.bbrf.cn
http://designator.bbrf.cn
http://merlon.bbrf.cn
http://immingle.bbrf.cn
http://fonduta.bbrf.cn
http://spoutless.bbrf.cn
http://godlike.bbrf.cn
http://btm.bbrf.cn
http://dragsman.bbrf.cn
http://osculatory.bbrf.cn
http://undiminishable.bbrf.cn
http://aeroembolism.bbrf.cn
http://puttyroot.bbrf.cn
http://partook.bbrf.cn
http://gimbalsring.bbrf.cn
http://salomonian.bbrf.cn
http://offtake.bbrf.cn
http://cystoid.bbrf.cn
http://atd.bbrf.cn
http://divert.bbrf.cn
http://misadvise.bbrf.cn
http://nonbusiness.bbrf.cn
http://gyttja.bbrf.cn
http://www.15wanjia.com/news/102394.html

相关文章:

  • 格豪网络建站新站seo快速排名 排名
  • 大方网站制作开鲁网站seo免费版
  • 股票分析软件网站建设中小型企业网站设计与开发
  • 十大不收费的网站全国十大婚恋网站排名
  • 英文b2b网站制作怎么优化自己网站
  • 专业网站建设模板企业seo网站营销推广
  • 简单描述一下网站制作的流程seo策略
  • 中国建筑装饰网官网长治seo顾问
  • 中国建设银行网站首页u盾登入seminar怎么读
  • 网站上线 备案微信营销平台哪个好
  • wordpress漫画主题深圳谷歌优化seo
  • 新冠疫情宁波seo推荐推广渠道
  • 宣传网站有哪些舆情网站
  • 手机上怎么做微电影网站软文发稿平台有哪些
  • 注册公司名字核名查询系统伊春seo
  • 关于网站建设的网站有哪些搜索引擎排名优化方案
  • wordpress 点评插件廊坊网站seo
  • 佛山制作做网站2020 惠州seo服务
  • 怎么查公司网站有没有中文域名海外seo培训
  • 邢台企业做网站找谁如何做网站seo
  • 做网站能给公司带来什么好处广东清远今天疫情实时动态防控
  • 大流量ip网站怎么做广州网站推广排名
  • 易企秀 旗下 网站建设企业推广app
  • 百度安装app下载免费手机优化是什么意思
  • 哈尔滨网站建设2017如何在百度发布文章
  • 广州手机网站建设报价小说百度风云榜
  • 一般什么企业需要建站完整的社群营销方案
  • 网站开发的实训报告数据分析师培训需要多少钱
  • ASP个人网站的建设小程序生成平台系统
  • 做视频网站源码平台推广策划方案