Skip to content

t2y/diary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diary

Contents repository for GitHub Pages

Install Hugo

See Install Hugo:

Confirm that you can run hugo command and the version.

$ hugo version
hugo v0.84.4 linux/amd64 BuildDate=unknown

Checkout repository

Clone this repository.

$ git clone [email protected]:t2y/diary.git
$ cd diary/

Run only once after the repository was cloned

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 static site

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.

Create Contents

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

License

Copyright © Tetsuya Morimoto for contents, however some source code is come from Hugo and Terminal theme and comply with their licenses.

About

Contents repository for GitHub Pages

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published