diff --git a/pages/common/hugo-server.md b/pages/common/hugo-server.md index 55c3501f16..e93964228f 100644 --- a/pages/common/hugo-server.md +++ b/pages/common/hugo-server.md @@ -9,7 +9,7 @@ - Build and serve a site on a specified port number: -`hugo server --port {{port_number}}` +`hugo server {{[-p|--port]}} {{port_number}}` - Build and serve a site while minifying supported output formats (HTML, XML, etc.): @@ -17,8 +17,8 @@ - Build and serve a site in the production environment with full re-renders while minifying supported formats: -`hugo server --environment {{production}} --disableFastRender --minify` +`hugo server {{[-e|--environment]}} {{production}} --disableFastRender --minify` - Display help: -`hugo server --help` +`hugo server {{[-h|--help]}}` diff --git a/pages/common/hugo.md b/pages/common/hugo.md index 9962fe477e..68f42cbf48 100644 --- a/pages/common/hugo.md +++ b/pages/common/hugo.md @@ -22,7 +22,7 @@ - Build a site including pages that are marked as a "draft": -`hugo --buildDrafts` +`hugo {{[-D|--buildDrafts]}}` - Build a site on your local IP: @@ -30,7 +30,7 @@ - Build a site to a given directory: -`hugo --destination {{path/to/destination}}` +`hugo {{[-d|--destination]}} {{path/to/destination}}` - Build a site, start up a webserver to serve it, and automatically reload when pages are edited: