Contents repository for GitHub Pages
See Install Hugo:
Confirm that you can run hugo
command and the version.
$ hugo version
hugo v0.84.4 linux/amd64 BuildDate=unknown
Clone this repository.
$ git clone [email protected]:t2y/diary.git
$ cd diary/
This repository include Hugo's theme as submodule
.
So you have to initialize/update theme repository for the first time when you cloned this repository.
$ git submodule update --init
Confirm Terminal theme files are cloned.
$ ls diary/themes/terminal/
Build contents and run as server.
The server
command is useful since it automatically rebuild when you modify a content.
$ cd diary/
$ hugo server
Open http://localhost:1313/ via web browser.
To create new contents, use the new
command with the path in contents directory.
$ hugo new posts/2021/0927.md
path/to/diary/diary/content/posts/2021/0927.md created
Copyright © Tetsuya Morimoto for contents, however some source code is come from Hugo and Terminal theme and comply with their licenses.