/docker_template_hugo_netlify

This is a Docker template that provides an environment with HUGO.

Primary LanguageDockerfile

HUGO + Netlify Docker template

This is a Docker template that provides an environment with HUGO.

Requirement

Develop

Run local:

$ docker-compose up

Go to http://localhost:1313 and you'll see the website.

Deploy

Deploy to Netlify:

$ git push origin main

Install

Clone repository:

$ git clone --recursive https://github.com/PiroHiroPiro/docker_template_hugo_netlify.git
$ cd docker_template_hugo_netlify

Build images:

$ docker-compose build

Create a new site:

$ docker-compose run hugo new site .

Choose Hugo themes and add a theme:

$ git submodule add https://github.com/budparr/gohugo-theme-ananke.git site/themes/ananke

How to use

Create new Post:

$ docker-compose run hugo new posts/initial-post.md

Update themes:

$ git submodule update --remote

Author

Hiroyuki Nishizawa