上线了网站如何制作登录和注册

时间: 2022-09-16 08:05:27 浏览次数:217
  1. 注册github账号
  2. 登陆GitHub账号,点击"Your repositories"
  3. new一个新的repositories,如下图填写:

二:安装node.js

  1. 下载node.js (Node.js);

2. 安装cnpm

# 选用淘宝镜像下载
npm install -g cnpm --registry=https://registry.npm.taobao.org #安装失败可多次尝试
cnpm
cnpm -v

3. 安装hexo-cli

cnpm install -g hexo-cli
hexo -v
D:
cd Iblog
chdir
## 必须先安装git
hexo init

4. 启动博客

hexo s
# INFO  Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.

三:上传博客

#新建博客
hexo n "我的第一篇博客文章"
cd source/_posts
dir
cd ../../
# 清理数据
hexo clean
# 生成hexo
hexo g
# 重新启动
hexo s

四:博客免费部署到github上去

1.在github上新建一个repository

npm install hexo-deployer-git --save

2.使用UltraEdit打开"_config.yml",打开页面如下:

2.1.更改(每个冒号后面要有一个空格):

2.2. 输入:

# 提交账户
git config --global user.email "smiles2011hyc@gmail.com"
git config --global user.name "smiles2011hyc"

hexo d

点击“sign in with your brower"

点击 “Authorize GitCredentialManager"

2.3. 博客部署页面已经完成

输入网址:博客地址

2.4. 自定义一个hexo主题

git clone https://github.com/litten/hexo-theme-yilia.git themes/yilia
cd themes\yilia
dir

2.5. 修改_config.yml

修改theme下的主题:

hexo clean
hexo g
hexo s
# 推到远端即github中
hexo d

参考视频:https://www.bilibili.com/video/BV1Yb411a7ty/?spm_id_from=trigger_reload

  非常感谢您读完蓝港网络的这篇文章:"上线了网站如何制作登录和注册",仅为提供更多信息供用户参考使用或为学习交流的方便。我们公司提供:网站建设、网站制作、官网建设、SEO优化、小程序制作等服务,欢迎联系我们提供您的需求。

标签: he 博客 me in

Copyright © 常州蓝港网络科技有限公司 苏ICP备2022017479号-1