Table of Contents

Go Hugo - Static WebSite Generator

About

This page has some not about the hugo website generator.

Installation

set PATH=%PATH%;C:\Hugo\ 
hugo version
Hugo Static Site Generator v0.42.1 windows/amd64 BuildDate: 2018-06-13T10:17:09Z

hugo server -D ^
  --themesDir .\hugo\themes ^
  --config .\hugo\config.toml ^
  --contentDir .\doc

Rendering

Section

Configuration

Image

Relative

https://github.com/gohugoio/hugo/issues/4642

Hierarchy

In the layouts/single.html: The below code will override the default title value set in baseof.html; i.e., {{.Site.Title}}

{{ define "title" }}
  {{ .Title }} – {{ .Site.Title }}
{{ end }}

Syntax

https://gohugo.io/content-management/formats/

Support

Note

hugo server -D