【Hexo】HexoとCloudflare pagesでブログを構築する
個人のメモブログにWordpressは不要かもしれん。ということでインストールバトル
環境
- Windows
- node.js
- git
インストール
1 | npm install -g hexo-cli |
テーマのダウンロード
1 | git clone https://github.com/(repo) themes/(dir) |
_config.yml
1 | ## theme: landscape |
あとはお好みに
テスト
1 | npx hexo server |
localhost:4000に建つ
wgetのインストール
1 | sudo apt install -y wget |
Cloudflare Pagesにデプロイ
NODE_VERSION = 14.3
Settings > Environment variables
1 | Build Command: hexo generate |
source/_posts
に記事書いておわり