From 4d187661d20cc78ff5badf88d0a2d6d778522a2b Mon Sep 17 00:00:00 2001 From: Ryan Watters Date: Sun, 12 Mar 2017 16:29:08 -0500 Subject: [PATCH] Add chocolatey install Closes rdwatters/hugo-docs-concept#23 --- content/content-management/authors.md | 3 +-- content/getting-started/installing.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/content/content-management/authors.md b/content/content-management/authors.md index ac47d9af1..31dbb1b1d 100644 --- a/content/content-management/authors.md +++ b/content/content-management/authors.md @@ -94,8 +94,7 @@ The list is accessible via the `.Authors` template variable. Printing all author {{ range .Authors }} {{ .DisplayName }} {{ end }} - -# output: Alice Allison +=> Alice Allison ``` Even if there are co-authors you may only want to show the main author. For this case you can use the `.Author` template variable **(note the singular form)**. The template variable contains the profile of the author that is first listed with his identifier in the front matter. diff --git a/content/getting-started/installing.md b/content/getting-started/installing.md index 6d44775b8..c4f503b0a 100644 --- a/content/getting-started/installing.md +++ b/content/getting-started/installing.md @@ -45,6 +45,16 @@ brew update && brew install hugo For more detailed explanations, read the installation guides that follow for installing on Mac OS X and Windows. +### Windows (Chocolatey) + +If you are on a Windows machine and use [Chocolatey][] for package management, you can install Hugo with the following one-liner: + +{{% code file="install-with-chocolatey.ps1" %}} +```powershell +choco install hugo -confirm +``` +{{% /code %}} + ### Source #### Prerequisite tools for downloading and building source code