This is a Docker template that provides an environment with HUGO.
Run local:
$ docker-compose up
Go to http://localhost:1313
and you'll see the website.
Deploy to Netlify:
$ git push origin main
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
Create new Post:
$ docker-compose run hugo new posts/initial-post.md
Update themes:
$ git submodule update --remote