mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 22:16:02 +00:00
1 parent
83fd79c4e1
commit
4d187661d2
2 files changed
+11
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user