What I'm Thinking

Creating a New Theme
September 28, 2014

Introduction This tutorial will show you how to create a simple theme in Hugo. I’ll introduce Hugo’s use of templates, and explain how to organize them into a theme. The theme will grow, minimizing effort while meeting evolving needs. To promote this focus, and to keep everything simple, I’ll omit CSS styling. We’ll start by creating a tiny, blog-like web site. We’ll implement this blog with just one — quite basic — template. ... En savoir plus
In this quickstart, we will build an online bookshelf that will list books and their reviews. Note: This quickstart depends on features introduced in Hugo v0.15. If you have an earlier version of Hugo, you will need to upgrade before proceeding. Step 1. Install Hugo Go to Hugo Releases and download the appropriate version for your OS and architecture. Save the main executable as hugo (or hugo.exe on Windows) somewhere in your PATH as we will be using it in the next step. ... En savoir plus

(Hu)go Template Primer
April 2, 2014

Hugo uses the excellent Go html/template library for its template engine. It is an extremely lightweight engine that provides a very small amount of logic. In our experience it is just the right amount of logic to be able to create a good static website. If you have used other template systems from different languages or frameworks, you will find a lot of similarities in Go templates. This document is a brief primer on using Go templates. ... En savoir plus

Migrating from Jekyll
March 10, 2013

Note: Hugo 0.15 comes with a hugo import jekyll command, see import from Jekyll. Move static content to static Jekyll has a rule that any directory not starting with _ will be copied as-is to the _site output. Hugo keeps all static content under static. You should therefore move it all there. With Jekyll, something that looked like ? <root>/ ? images/ logo.png should become ? <root>/ ? static/ ? images/ logo.png Additionally, you’ll want any files that should reside at the root (such as CNAME) to be moved to static. ... En savoir plus