Skip to content

docker-saigon/blog-hugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Saigon blog - source

content for the docker-saigon.github.io blog, powered by:

Hugo (v0.14)

Overview

Hugo is a static site generator written in Go. It is optimized for speed, easy use and configurability. Hugo takes a directory with content and templates and renders them into a full HTML website.

Hugo relies on Markdown files with front matter for meta data. And you can run Hugo from any directory.

Theme

Currently we are using the startbootstrap-clean-blog Theme. The theme has been added as a git submodule.

If you want to work on the blog, you will need to use the --recursive option when you git clone this repository.

Any changes to the css/js will need to copy the files from the themes/startbootstrap-clean-blog/static/{css,js} paths to the static/{css,js} path to ensure the changes are not lost when pushing to this repository.

Writing a blog post

To add a blog posts to this blog, follow these steps:

  1. Fork this repository and its submodules git clone --recursive git@github.com:docker-saigon/blog-hugo

  2. Get the Hugo binary for your platform & put it on PATH as hugo

  3. Ensure everything is working by using hugo server -w -d dev/ to run a live reload server accessible on http://localhost:1313

  4. Add a new post via cli, using hugo new post/<title> & finalize the post using the live reload server. Reference

  5. Open a pull-request on github for peer review of your new post.

Publishing updates to the site

  1. Pull Updates from origin

  2. If public/ folder does not exist yet, clone current site to public/ folder: git submodule add git@github.com:docker-saigon/docker-saigon.github.io public/

  3. Run hugo to generate the new site with new content overwriting public/

  4. Use ./publish.sh [commit message] script to push new static site to the docker-saigon/docker-saigon.github.io repository on github

./publish.sh will move into the public/ folder, commit all the changes and push them to the website.

Releases

No releases published

Packages

No packages published

Languages