【Hugo入門】Hugoで新しいアプリケーションを作成する
Hugoのインストールを行い、新しいアプリケーションを作成してみます。
■PC環境
・Windows10、Administrator(管理者)アカウント
・パッケージ管理ソフトウェア「Chocolatey」インストール済。インストールに関してはこちらをご確認ください。
■新しいアプリケーションを作成する
Windows10のデスクトップ画面に、「ここに入力して検索」と表示されている検索ボックスで「powershell.exe」と検索し、 Windows PowerShellを表示させておきます。
hugo new site demo
表示後、上記のコマンドを入力し、Enterキーを押します。今回は「demo」という新しいアプリケーションを作成しますので、「demo」と入力しています。
Congratulations! Your new Hugo site is created in C:\WINDOWS\system32\demo.Just a few more steps and you're ready to go:
- Download a theme into the same-named folder.
Choose a theme from https://themes.gohugo.io/ or
create your own with the "hugo new theme <THEMENAME>" command.
- Perhaps you want to add some content. You can add single files
with "hugo new <SECTIONNAME>\<FILENAME>.<FORMAT>".
- Start the built-in live server via "hugo server".
Visit https://gohugo.io/ for quickstart guide and full documentation.
Enterキーを押すと、上記のメッセージが表示されます。「新しいHugoのサイトは「C:\ WINDOWS \ system32 \ demo」に作成されました。」という内容でこれでアプリケーションの作成が完了となります。