From 0dea4539f3e9f3ed234ae4878150534a1638bc2b Mon Sep 17 00:00:00 2001 From: David Haynes Date: Thu, 25 May 2017 12:23:29 -0400 Subject: [PATCH] hugo: add page - Add in `hugo` commands essential to getting a site up and running. - This is defined as: - A site existing - A theme existing - A page existing - The site being built in some manner (optionally being served through the webserver) First pass on verbage. --- pages/common/hugo.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pages/common/hugo.md diff --git a/pages/common/hugo.md b/pages/common/hugo.md new file mode 100644 index 000000000..d3a9202dd --- /dev/null +++ b/pages/common/hugo.md @@ -0,0 +1,31 @@ +# hugo + +> Hugo is a Fast and Flexible Static Site Generator. + +- 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/]()): + +`hugo new theme {{theme_name}}` + +- Create a new page: + +`hugo new {{section_name}}/{{filename}}{{.ext}}` + +- Build your site to the `./public/` directory: + +`hugo` + +- Build your site to a different destination: + +`hugo --destination {{path/to/destination}}` + +- Build your site, start up a webserver to serve it, and watch for changes: + +`hugo server` + +- Build and serve content marked as draft: + +`hugo server --buildDrafts`