Hexoのインストールと基本的な使い方
Hexo のインストールと基本的な使い方この記事では、Hexo のインストール方法と、基本的なブログ記事の作成手順について解説します。
Hexo とは?Hexo は、Node.js ベースの静的サイトジェネレーターです。高速なサイト生成が特徴で、特に技術系のブログなどに人気があります。
Hexo のインストールまず、Hexo を使うために Node.js がインストールされている必要があります。Node.js がインストールされていない場合は、公式サイトからインストールしてください。
次に、Hexo をグローバルにインストールします。以下のコマンドをターミナルで実行してください。
1npm install -g hexo-cli
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment