Skip to content

Stayfi/gohugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go Hugo

Pretty light docker container to run Hugo

https://gohugo.io

Installation

stayfi/Go-Hugo require docker.

First, run your docker terminal.

Then you will need to clone this repo :

$ git clone https://github.com/Stayfi/gohugo.git

Build stayfi/gohugo container :

$ docker build -t stayfi/gohugo gohugo

Usage

You should make a new alias nawe "hugo" with this inside :

$ docker run -v $(pwd):/src --rm -p 1313:1313 stayfi/gohugo -s /src

To create a new site :

$ docker run -v $(pwd):/src --rm -p 1313:1313 stayfi/gohugo -s /src new site /src

Assuming your default docker IP address is 192.168.99.100, you can serve your site by :

$ docker run -v $(pwd):/src --rm -p 1313:1313 stayfi/gohugo -s server --theme=hugo_theme_robust --buildDrafts --bind "0.0.0.0" --baseURL 192.168.99.100:1313

Replace "192.168.99.100" by your docker host IP address.

To start working on your site.

Credits

Stayfi B. - [email protected]

Versions

0.18.1

First version, working.

License

MIT license

About

Pretty light docker container to run Hugo

Resources

License

Stars

Watchers

Forks

Packages

No packages published