Skip to content

Latest commit

 

History

History

hugo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

killerwolf/hugo

Circle CI

This repository powers killerwolf/hugo docker image built for several versions of hugo, a markdown backed blog engine written in golang

$ docker run killerwolf/hugo:0.13 version
Hugo Static Site Generator v0.13 BuildDate: 2015-02-22T04:02:30Z

Usage

Create a new site

Let's run our first command: bootstraping a new blog with hugo:

$ mkdir ~/blog && cd blog
$ docker run --rm -v $PWD:/blog:rw killerwolf/hugo new site /blog

This command generate a new skeleton (files and folder)

$ ls
archetypes	config.toml	content		data		layouts		static

Choose your theme

Adding our chosen theme (herring-cove, you're free to swap it)

$ mkdir themes && cd themes
$ git clone https://github.com/spf13/herring-cove.git

Generate static blog

Write some markdown content into content/ directory, and then launch

$ docker run --rm -v $PWD:/app:rw killerwolf/hugo -s /app -d dist/

You'll find fond your generated blog under the dist folder

Contributing

Fork and send a pull request