hexo部署github-page.md

参考链接

部署教学文档
官方文档
fluid theme 用户手册

部署

部署 hexo-test 目录

  • 初始化 hexo-test

    1
    2
    3
    npm install -g hexo-cli
    mkdir hexo-test
    hexo init hexo-test
  • 修改 _config.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
title
subtitle
description
author
language

url

theme

deploy:
type: git
repo: ${github_page_url} # 这里填 ssh 的, 本机认证
branch: ${branch}

部署 fluid

1
2
3
cd hexo-test/theme && git clone https://github.com/fluid-dev/hexo-theme-fluid/
mv hexo-theme-fluid fluid
cp fluid/_config.yml ../_config.fluid.yml
  • 修改 _config.fluid.yml 内容
1
mermaid  修改为 true

拷贝 markdown 目录到 source/_post 下

1
2
cp -r ../dairy/

github 建立 仓库 xxx.github.io

  • 创建 repo
  • 在 repo setting -> pages -> source 选择 deploy from a branch -> branch main /(root) 即可

hexo部署github-page.md
https://abrance.github.io/2024/09/03/domain/文档/hexo部署github-page/
Author
xiaoy
Posted on
September 3, 2024
Licensed under