Corporate website source powered by Hugo and themed by min_night.
See Install Hugo:
Confirm that you can run hugo
command and the version.
$ hugo version
Hugo Static Site Generator v0.63.0-DEV linux/amd64 BuildDate: unknown
Clone this repository.
$ git clone [email protected]:kazamori/corporate-website.git
$ cd corporate-website/
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 min_night
theme files are cloned.
$ ls kazamori/themes/min_night
LICENSE README.md exampleSite layouts theme.toml
NEWS.md archetypes images static
Build contents and run as server.
The server
command is useful since it automatically rebuild when you modify a content.
$ cd kazamori
$ hugo server
| EN
+------------------+----+
Pages | 24
Paginator pages | 0
Non-page files | 0
Static files | 16
Processed images | 0
Aliases | 7
Sitemaps | 1
Cleaned | 0
Built in 78 ms
Watching for changes in path/to/corporate-website/kazamori/{archetypes,content,data,layouts,static,themes}
Watching for config changes in path/to/corporate-website/kazamori/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
Open http://localhost:1313/ via web browser.
To create new contents, use the new
command with the path in contents directory.
$ hugo new blogs/2019/customize-hugo-url-path.md
path/to/corporate-website/kazamori/content/blogs/2019/customize-hugo-url-path.md created
$ vi content/blogs/2019/customize-hugo-url-path.md
To deploy static site distribution into any directory is like this.
$ hugo --destination path/to/html/directory
Copyright © Kazamori LLC for contents, however some source code is come from Hugo and min_night theme and comply with their licenses.