mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-18 20:54:38 -04:00
parent
83fd79c4e1
commit
4d187661d2
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user