# 企管一 陳鈺靜 410832023 ### 部落格 https://y-j-shinee.github.io/ --- # 在Github建一個倉庫 ## 建立一個 Gitnub Pages --- # 安裝 Node.js 和 Notepad++ --- # 初始化新的 Hexo ![](https://i.imgur.com/CucGRbK.png) --- # 創建一個資料夾 hexo init ![](https://i.imgur.com/m5I4hON.png) --- ## 進入資料夾 → 安裝 Hexo → 安裝 git 部署套件 ![](https://i.imgur.com/KmkpPLX.png) --- # 設定部落格相關資訊 ## 進入Hexo資料夾→ ## 到_config.yml 這個檔案, ## 然後用 Notepad++ 開啟 --- # 修改第 6~12 行資訊 ![](https://i.imgur.com/SZOACPd.png) --- ## 到第16行的url ## 換成自己網站的連結 ## → 存檔 ![](https://i.imgur.com/kcm2DFe.png) --- ## 設定部署至 GitHub 的資訊 ### 找到deploy (在文件的底部),輸入以下設定,repo改成自己的GitHub帳號 ![](https://i.imgur.com/OXc4Tdc.png) --- ## 部署至 GitHub ### hexo clean → hexo g → hexo d ![](https://i.imgur.com/lQd4sQh.png) --- # hexo s ## 進入 http://localhost:4000/ ## 可以看到部落格的預覽 ![](https://i.imgur.com/7p4Q1l1.png) --- # 更換主題 ## 到 https://hexo.io/themes/ 找喜歡的主題 #### → git clone 主題URL themes/主題資料夾名稱 ![](https://i.imgur.com/NiZ84JH.png) --- ## 打開_config.yml檔案的theme 改成你主題資料夾名稱 ![](https://i.imgur.com/Sli5JuU.png) --- ## 打開themes/主題資料夾名稱/_config.yml ### 修改所有你想要修改的資訊 ![](https://i.imgur.com/d3HnJh0.png) --- # 發布文章 ## hexo new "文章標題" ![](https://i.imgur.com/YsXQIeZ.png) --- # 到該文章的.md檔案修改內容 ![](https://i.imgur.com/An22n11.png) --- ## hexo s 後可到 http://localhost:4000/ ## 預覽目前的修改 --- ## hexo clean → hexo g → hexo d ## 部署至 GitHub --- ## 打開部落格就完成了! ![](https://i.imgur.com/Fek2sPa.png) --- # 參考網站 #### https://ed521.github.io/2019/07/hexo-install/ #### https://zhuanlan.zhihu.com/p/35668237
{"metaMigratedAt":"2023-06-15T07:57:16.717Z","metaMigratedFrom":"Content","title":"企管一 陳鈺靜 410832023","breaks":true,"contributors":"[{\"id\":\"3a3d81b8-fd09-48a6-bd0d-46e8f0f363e3\",\"add\":1658,\"del\":125}]"}
    271 views