下載node.js (Node.js); 2. 安裝cnpm

# 選用淘寶鏡像下載npm install -" />

国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

15158846557 在線咨詢 在線咨詢
15158846557 在線咨詢
所在位置: 首頁 > 營銷資訊 > 網(wǎng)站運(yùn)營 > 通過GitHub免費(fèi)構(gòu)建個(gè)人網(wǎng)站

通過GitHub免費(fèi)構(gòu)建個(gè)人網(wǎng)站

時(shí)間:2023-08-02 22:30:01 | 來源:網(wǎng)站運(yùn)營

時(shí)間:2023-08-02 22:30:01 來源:網(wǎng)站運(yùn)營

通過GitHub免費(fèi)構(gòu)建個(gè)人網(wǎng)站:
  1. 注冊github賬號
  2. 登陸GitHub賬號,點(diǎn)擊"Your repositories"
  3. new一個(gè)新的repositories,如下圖填寫:
二:安裝node.js

  1. 下載node.js (Node.js);
2. 安裝cnpm

# 選用淘寶鏡像下載npm install -g cnpm --registry=https://registry.npm.taobao.org #安裝失敗可多次嘗試cnpmcnpm -v3. 安裝hexo-cli

cnpm install -g hexo-clihexo -vD:cd Iblogchdir## 必須先安裝githexo init4. 啟動(dòng)博客

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

#新建博客hexo n "我的第一篇博客文章"cd source/_postsdircd ../../# 清理數(shù)據(jù)hexo clean# 生成hexohexo g# 重新啟動(dòng)hexo s四:博客免費(fèi)部署到github上去

1.在github上新建一個(gè)repository

npm install hexo-deployer-git --save2.使用UltraEdit打開"_config.yml",打開頁面如下:

2.1.更改(每個(gè)冒號后面要有一個(gè)空格):

2.2. 輸入:

# 提交賬戶git config --global user.email "smiles2011hyc@gmail.com"git config --global user.name "smiles2011hyc"hexo d點(diǎn)擊“sign in with your brower"

點(diǎn)擊 “Authorize GitCredentialManager"

2.3. 博客部署頁面已經(jīng)完成

輸入網(wǎng)址:博客地址

2.4. 自定義一個(gè)hexo主題

git clone https://github.com/litten/hexo-theme-yilia.git themes/yiliacd themes/yiliadir2.5. 修改_config.yml

修改theme下的主題:

hexo cleanhexo ghexo s# 推到遠(yuǎn)端即github中hexo d

關(guān)鍵詞:免費(fèi),通過

74
73
25
news

版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點(diǎn)擊下載Chrome瀏覽器
關(guān)閉