Add chocolatey install

Closes rdwatters/hugo-docs-concept#23
This commit is contained in:
Ryan Watters 2017-03-12 16:29:08 -05:00
parent 83fd79c4e1
commit 4d187661d2
2 changed files with 11 additions and 2 deletions

View File

@ -94,8 +94,7 @@ The list is accessible via the `.Authors` template variable. Printing all author
{{ range .Authors }} {{ range .Authors }}
{{ .DisplayName }} {{ .DisplayName }}
{{ end }} {{ end }}
=> Alice Allison
# output: 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. 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.

View File

@ -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. 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 ### Source
#### Prerequisite tools for downloading and building source code #### Prerequisite tools for downloading and building source code