From 474f188b8831cb7d156366f0538d93bca0b6adf9 Mon Sep 17 00:00:00 2001 From: David Haynes Date: Thu, 25 May 2017 18:52:55 -0400 Subject: [PATCH] hugo: modify language - hugo -> Hugo - lowercase the description - plain URL - remove the extension token - do not use relative references - modify the buildDraft example to standalone and change the wording slightly - modify the "watch for changes" wording slightly --- pages/common/hugo.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pages/common/hugo.md b/pages/common/hugo.md index d3a9202dd..dd5439430 100644 --- a/pages/common/hugo.md +++ b/pages/common/hugo.md @@ -1,31 +1,31 @@ # hugo -> Hugo is a Fast and Flexible Static Site Generator. +> Hugo is a fast and flexible static site generator. -- Create a new hugo site: +- Create a new Hugo site: `hugo new site {{path/to/site}}` -- Create a new hugo theme (you may also download one from [https://themes.gohugo.io/]()): +- Create a new Hugo theme (you may also download one from https://themes.gohugo.io/): `hugo new theme {{theme_name}}` - Create a new page: -`hugo new {{section_name}}/{{filename}}{{.ext}}` +`hugo new {{section_name}}/{{filename}}` - Build your site to the `./public/` directory: `hugo` -- Build your site to a different destination: +- Build your site including pages that are marked as a "draft": + +`hugo --buildDrafts` + +- Build your site to a given directory: `hugo --destination {{path/to/destination}}` -- Build your site, start up a webserver to serve it, and watch for changes: +- Build your site, start up a webserver to serve it, and automatically reload when pages are edited: `hugo server` - -- Build and serve content marked as draft: - -`hugo server --buildDrafts`