Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugoDocs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Mooring <joe.mooring@veriphor.com>2022-11-08 14:48:38 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-11-10 17:15:02 +0300
commit1b12916340b373e126ea75cbdbc27991c6d15a1d (patch)
tree88c3dac4b03f3bab57b98c77d8c20e82e81882f8
parent9dd51235b8d6f1b5d6a0dd65177e9344e18aabc2 (diff)
Promote "Installation" to a section
Closes #1866 Closes #1227 Closes #1468 Closes #1472 Closes #1555 Closes #1626 Closes #1737 Closes #1841
-rw-r--r--.cspell.json6
-rw-r--r--config/_default/menus/menus.en.toml128
-rw-r--r--content/en/getting-started/installing.md583
-rw-r--r--content/en/installation/_index.md15
-rw-r--r--content/en/installation/bsd.md75
-rw-r--r--content/en/installation/common/01-flavors.md8
-rw-r--r--content/en/installation/common/02-prerequisites.md27
-rw-r--r--content/en/installation/common/03-prebuilt-binaries.md21
-rw-r--r--content/en/installation/common/04-docker.md10
-rw-r--r--content/en/installation/common/05-build-from-source.md20
-rw-r--r--content/en/installation/common/homebrew.md9
-rw-r--r--content/en/installation/common/index.md3
-rw-r--r--content/en/installation/linux.md125
-rw-r--r--content/en/installation/macos.md48
-rw-r--r--content/en/installation/windows.md63
-rw-r--r--content/en/troubleshooting/faq.md11
16 files changed, 487 insertions, 665 deletions
diff --git a/.cspell.json b/.cspell.json
index e544b2649..0958b7645 100644
--- a/.cspell.json
+++ b/.cspell.json
@@ -98,6 +98,7 @@
"funcs",
"funcsig",
"Garen",
+ "Garuda",
"gcloud",
"Getenv",
"getjson",
@@ -150,6 +151,7 @@
"Joomla",
"JRBR",
"jsonify",
+ "Karmada",
"katex",
"keycdn",
"KEYVALS",
@@ -328,6 +330,7 @@
"yoyoyo",
"yunbox",
"Zgotmpl",
+ "Zorin",
"zzbbaabb",
"مدونتي"
],
@@ -353,5 +356,6 @@
"**/news/*",
"**/showcase/*"
],
- "useGitignore": true
+ "useGitignore": true,
+ "enabled": true
}
diff --git a/config/_default/menus/menus.en.toml b/config/_default/menus/menus.en.toml
index a31218a4f..28bbc3ee3 100644
--- a/config/_default/menus/menus.en.toml
+++ b/config/_default/menus/menus.en.toml
@@ -1,65 +1,69 @@
[[docs]]
name = "About Hugo"
- weight = 1
+ weight = 10
identifier = "about"
url = "/about/"
[[docs]]
+ name = "Installation"
+ weight = 20
+ identifier = "installation"
+ url = "/installation/"
+
+[[docs]]
name = "Getting Started"
- weight = 5
+ weight = 30
identifier = "getting-started"
url = "/getting-started/"
[[docs]]
name = "Hugo Modules"
- weight = 15
+ weight = 40
identifier = "modules"
post = "break"
url = "/hugo-modules/"
-# Core Menus
+# Core menus
[[docs]]
name = "Content Management"
- weight = 20
+ weight = 50
identifier = "content-management"
post = "expanded"
url = "/content-management/"
[[docs]]
name = "Templates"
- weight = 25
+ weight = 60
identifier = "templates"
-
url = "/templates/"
[[docs]]
name = "Functions"
- weight = 30
+ weight = 70
identifier = "functions"
url = "/functions/"
[[docs]]
name = "Variables"
- weight = 35
+ weight = 80
identifier = "variables"
url = "/variables/"
+
[[docs]]
name = "Hugo Pipes"
- weight = 36
+ weight = 90
identifier = "pipes"
url = "/hugo-pipes/"
+
[[docs]]
name = "CLI"
- weight = 40
+ weight = 100
post = "break"
identifier = "commands"
url = "/commands/"
-
-
-# LOW LEVEL ITEMS
-
+# Low level items
[[docs]]
name = "Troubleshooting"
@@ -86,29 +90,13 @@
identifier = "contribute"
url = "/contribute/"
-#[[docs]]
-# name = "Tags"
-# weight = 120
-# identifier = "tags"
-# url = "/tags/"
-
-
-# [[docs]]
-# name = "Categories"
-# weight = 140
-# identifier = "categories"
-# url = "/categories/"
-
######## QUICKLINKS
- [[quicklinks]]
- name = "Fundamentals"
- weight = 1
- identifier = "fundamentals"
- url = "/tags/fundamentals/"
-
-
-
+[[quicklinks]]
+ name = "Fundamentals"
+ weight = 1
+ identifier = "fundamentals"
+ url = "/tags/fundamentals/"
######## GLOBAL ITEMS TO BE SHARED WITH THE HUGO SITES
@@ -118,37 +106,37 @@
identifier = "news"
url = "/news/"
- [[global]]
- name = "Docs"
- weight = 5
- identifier = "docs"
- url = "/documentation/"
-
- [[global]]
- name = "Themes"
- weight = 10
- identifier = "themes"
- url = "https://themes.gohugo.io/"
-
- [[global]]
- name = "Showcase"
- weight = 20
- identifier = "showcase"
- url = "/showcase/"
-
- # Anything with a weight > 100 gets an external icon
- [[global]]
- name = "Community"
- weight = 150
- icon = true
- identifier = "community"
- post = "external"
- url = "https://discourse.gohugo.io/"
-
-
- [[global]]
- name = "GitHub"
- weight = 200
- identifier = "github"
- post = "external"
- url = "https://github.com/gohugoio/hugo" \ No newline at end of file
+[[global]]
+ name = "Docs"
+ weight = 5
+ identifier = "docs"
+ url = "/documentation/"
+
+[[global]]
+ name = "Themes"
+ weight = 10
+ identifier = "themes"
+ url = "https://themes.gohugo.io/"
+
+[[global]]
+ name = "Showcase"
+ weight = 20
+ identifier = "showcase"
+ url = "/showcase/"
+
+# Anything with a weight > 100 gets an external icon
+
+[[global]]
+ name = "Community"
+ weight = 150
+ icon = true
+ identifier = "community"
+ post = "external"
+ url = "https://discourse.gohugo.io/"
+
+[[global]]
+ name = "GitHub"
+ weight = 200
+ identifier = "github"
+ post = "external"
+ url = "https://github.com/gohugoio/hugo"
diff --git a/content/en/getting-started/installing.md b/content/en/getting-started/installing.md
deleted file mode 100644
index 0ac985558..000000000
--- a/content/en/getting-started/installing.md
+++ /dev/null
@@ -1,583 +0,0 @@
----
-title: Install Hugo
-linktitle: Install Hugo
-description: Install Hugo on macOS, Windows, Linux, OpenBSD, FreeBSD, and on any machine where the Go compiler tool chain can run.
-date: 2016-11-01
-publishdate: 2016-11-01
-categories: [getting started,fundamentals]
-authors: ["Michael Henderson"]
-keywords: [install,pc,windows,linux,macos,binary,tarball]
-menu:
- docs:
- parent: "getting-started"
- weight: 30
-weight: 30
-sections_weight: 30
-aliases: [/tutorials/installing-on-windows/,/tutorials/installing-on-mac/,/overview/installing/,/getting-started/install,/install/]
-toc: true
----
-
-{{% note %}}
-There is lots of talk about "Hugo being written in Go", but you don't need to install Go to enjoy Hugo. Just grab a precompiled binary!
-{{% /note %}}
-
-Hugo is written in [Go](https://go.dev/) with support for multiple platforms. The latest release can be found at [Hugo Releases][releases].
-
-Hugo currently provides pre-built binaries for the following:
-
-* macOS (Darwin) for x64, i386, and ARM architectures
-* Windows
-* Linux
-* OpenBSD
-* FreeBSD
-
-Hugo may also be compiled from source wherever the Go toolchain can run; e.g., on other operating systems such as DragonFly BSD, OpenBSD, Plan&nbsp;9, Solaris, and others. See <https://go.dev/doc/install/source> for the full set of supported combinations of target operating systems and compilation architectures.
-
-## Quick Install
-
-### Binary (Cross-platform)
-
-Download the appropriate version for your platform from [Hugo Releases][releases]. Once downloaded, the binary can be run from anywhere. You don't need to install it into a global location. This works well for shared hosts and other systems where you don't have a privileged account.
-
-Ideally, you should install it somewhere in your `PATH` for easy use. `/usr/local/bin` is the most probable location.
-
-### Docker
-
-We currently do not offer official Hugo images for Docker, but we do recommend these up to date distributions: https://hub.docker.com/r/klakegg/hugo/
-
-### Homebrew (macOS)
-
-If you are on macOS and using [Homebrew][brew], you can install Hugo with the following one-liner:
-
-{{< code file="install-with-homebrew.sh" >}}
-brew install hugo
-{{< /code >}}
-
-For more detailed explanations, read the installation guides that follow for installing on macOS and Windows.
-
-### MacPorts (macOS)
-
-If you are on macOS and using [MacPorts][macports], you can install Hugo with the following one-liner:
-
-{{< code file="install-with-macports.sh" >}}
-port install hugo
-{{< /code >}}
-
-### Homebrew (Linux)
-
-If you are using [Homebrew][linuxbrew] on Linux, you can install Hugo with the following one-liner:
-
-{{< code file="install-with-linuxbrew.sh" >}}
-brew install hugo
-{{< /code >}}
-
-Installation guides for Homebrew on Linux are available on their [website][linuxbrew].
-
-### Chocolatey (Windows)
-
-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" >}}
-choco install hugo -confirm
-{{< /code >}}
-
-Or if you need the “extended” Sass/SCSS version:
-
-{{< code file="install-extended-with-chocolatey.ps1" >}}
-choco install hugo-extended -confirm
-{{< /code >}}
-
-### Scoop (Windows)
-
-If you are on a Windows machine and use [Scoop][] for package management, you can install Hugo with the following one-liner:
-
-```bash
-scoop install hugo
-```
-
-Or install the extended version with:
-
-```bash
-scoop install hugo-extended
-```
-
-### Source
-
-#### Prerequisite Tools
-
-* [Git][installgit]
-* [GCC][] (For Windows users only)
-* [Go (at least Go 1.11)](https://go.dev/dl/)
-
-#### Fetch from GitHub
-
-Since Hugo 0.48, Hugo uses the Go Modules support built into Go 1.11 to build. The easiest way to get started is to clone Hugo in a directory outside the GOPATH, as in the following example:
-
-{{< code file="from-gh.sh" >}}
-mkdir $HOME/src
-cd $HOME/src
-git clone https://github.com/gohugoio/hugo.git
-cd hugo
-go install --tags extended
-{{< /code >}}
-
-Remove `--tags extended` if you do not want/need Sass/SCSS support.
-
-{{% note %}}
-
-##### For installation on Windows
-
-* Substitute the `$HOME` environment variable above with `%USERPROFILE%`.
-* If you install `--tags extended` version, you may encounter this error `"gcc": executable file not found in %PATH%`
- * Please make sure you have installed `gcc` command and add it to `%PATH%`.
- * "MinGW" is recommended, it has been tested and built successfully
-
-{{% /note %}}
-
-## macOS
-
-### Assumptions
-
-1. You know how to open the macOS terminal.
-2. You're running a modern 64-bit Mac.
-3. You will use `~/Sites` as the starting point for your site. (`~/Sites` is used for example purposes. If you are familiar enough with the command-line and file system, you should have no issues following along with the instructions.)
-
-### Pick Your Method
-
-There are three ways to install Hugo on your Mac
-
-1. A package manager, like [Homebrew][brew] (`brew`) or [MacPorts][macports] (`port`)
-2. Distribution (i.e., tarball)
-3. Building from Source
-
-There is no "best" way to install Hugo on your Mac. You should use the method that works best for your use case.
-
-#### Pros and Cons
-
-There are pros and cons to each of the aforementioned methods:
-
-1. **Package Manager.** Using a package manager is the simplest method and will require the least amount of work to maintain. The drawbacks aren't severe. The default package will be for the most recent release, so it will not have bug fixes until the next release (i.e., unless you install it with the `--HEAD` option in Homebrew). Releases may lag a few days behind because it has to be coordinated with another team. Nevertheless, this is the recommended installation method if you want to work from a stable, widely used source. Package managers work well and they are easy to update.
-
-2. **Tarball.** Downloading and installing from the tarball is also easy, although it requires a few more command-line skills than does Homebrew. Updates are easy as well: you just repeat the process with the new binary. This gives you the flexibility to have multiple versions on your computer. If you don't want to use `brew`, then the tarball/binary is a good choice.
-
-3. **Building from Source.** Building from source is the most work. The advantage of building from source is that you don't have to wait for a release to add features or bug fixes. The disadvantage is that you need to spend more time managing the setup, which is manageable but requires more time than the preceding two options.
-
-{{% note %}}
-Since building from source is appealing to more seasoned command-line users, this guide will focus more on installing Hugo via Homebrew and Tarball.
-{{% /note %}}
-
-### Install Hugo with Brew
-
-{{< youtube WvhCGlLcrF8 >}}
-
-#### Step 1: Install `brew` if you haven't already
-
-Go to the `brew` website, <https://brew.sh>, and follow the directions there. The most important step is the installation from the command line:
-
-{{< code file="install-brew.sh" >}}
-ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-{{< /code >}}
-
-#### Step 2: Run the `brew` Command to Install `hugo`
-
-Installing Hugo using `brew` is as easy as the following:
-
-{{< code file="install-brew.sh" >}}
-brew install hugo
-{{< /code >}}
-
-If Homebrew is working properly, you should see something similar to the following:
-
-```txt
-==> Downloading https://homebrew.bintray.com/bottles/hugo-0.21.sierra.bottle.tar.gz
-######################################################################### 100.0%
-==> Pouring hugo-0.21.sierra.bottle.tar.gz
-🍺 /usr/local/Cellar/hugo/0.21: 32 files, 17.4MB
-```
-
-{{% note "Installing the Latest Hugo with Brew" %}}
-Replace `brew install hugo` with `brew install hugo --HEAD` if you want the absolute latest in-development version.
-{{% /note %}}
-
-`brew` should have updated your path to include Hugo. You can confirm by opening a new terminal window and running a few commands:
-
-```txt
-$ # show the location of the hugo executable
-which hugo
-/usr/local/bin/hugo
-
-# show the installed version
-ls -l $( which hugo )
-lrwxr-xr-x 1 mdhender admin 30 Mar 28 22:19 /usr/local/bin/hugo -> ../Cellar/hugo/0.13_1/bin/hugo
-
-# verify that hugo runs correctly
-hugo version
-Hugo Static Site Generator v0.13 BuildDate: 2015-03-09T21:34:47-05:00
-```
-
-### Install Hugo from Tarball
-
-#### Step 1: Decide on the location
-
-When installing from the tarball, you have to decide if you're going to install the binary in `/usr/local/bin` or in your home directory. There are three camps on this:
-
-1. Install it in `/usr/local/bin` so that all the users on your system have access to it. This is a good idea because it's a fairly standard place for executables. The downside is that you may need elevated privileges to put software into that location. Also, if there are multiple users on your system, they will all run the same version. Sometimes this can be an issue if you want to try out a new release.
-
-2. Install it in `~/bin` so that only you can execute it. This is a good idea because it's easy to do, easy to maintain, and doesn't require elevated privileges. The downside is that only you can run Hugo. If there are other users on your site, they have to maintain their own copies. That can lead to people running different versions. Of course, this does make it easier for you to experiment with different releases.
-
-3. Install it in your `Sites` directory. This is not a bad idea if you have only one site that you're building. It keeps every thing in a single place. If you want to try out new releases, you can make a copy of the entire site and update the Hugo executable.
-
-All three locations will work for you. In the interest of brevity, this guide focuses on option #2.
-
-#### Step 2: Download the Tarball
-
-1. Open <https://github.com/gohugoio/hugo/releases> in your browser.
-
-2. Find the current release by scrolling down and looking for the green tag that reads "Latest Release."
-
-3. Download the current tarball for the Mac. The name will be something like `hugo_X.Y_osx-64bit.tgz`, where `X.YY` is the release number.
-
-4. By default, the tarball will be saved to your `~/Downloads` directory. If you choose to use a different location, you'll need to change that in the following steps.
-
-#### Step 3: Confirm your download
-
-Verify that the tarball wasn't corrupted during the download:
-
-```txt
-tar tvf ~/Downloads/hugo_X.Y_osx-64bit.tgz
--rwxrwxrwx 0 0 0 0 Feb 22 04:02 hugo_X.Y_osx-64bit/hugo_X.Y_osx-64bit.tgz
--rwxrwxrwx 0 0 0 0 Feb 22 03:24 hugo_X.Y_osx-64bit/README.md
--rwxrwxrwx 0 0 0 0 Jan 30 18:48 hugo_X.Y_osx-64bit/LICENSE.md
-```
-
-The `.md` files are documentation for Hugo. The other file is the executable.
-
-#### Step 4: Install Into Your `bin` Directory
-
-```txt
-# create the directory if needed
-mkdir -p ~/bin
-
-# make it the working directory
-cd ~/bin
-
-# extract the tarball
-tar -xvzf ~/Downloads/hugo_X.Y_osx-64bit.tgz
-Archive: hugo_X.Y_osx-64bit.tgz
- x ./
- x ./hugo
- x ./LICENSE.md
- x ./README.md
-
-# verify that it runs
-./hugo version
-Hugo Static Site Generator v0.13 BuildDate: 2015-02-22T04:02:30-06:00
-```
-
-You may need to add your bin directory to your `PATH` environment variable. The `which` command will check for us. If it can find `hugo`, it will print the full path to it. Otherwise, it will not print anything.
-
-```txt
-# check if hugo is in the path
-which hugo
-/Users/USERNAME/bin/hugo
-```
-
-If `hugo` is not in your `PATH`:
-
-1. Determine your default shell (zsh or bash).
-
- ```bash
- echo $SHELL
- ```
-
-2. Edit your profile.
-
- If your default shell is zsh:
-
- ```zsh
- nano ~/.zprofile
- ```
-
- If your default shell is bash:
-
- ```bash
- nano ~/.bash_profile
- ```
-
-3. Insert a line to add `$HOME/bin` to your existing `PATH`.
-
- ```txt
- export PATH=$PATH:$HOME/bin
- ```
-
-4. Save the file by pressing Control-X, then Y.
-
-5. Close the terminal and open a new terminal to pick up the changes to your profile. Verify the change by running the `which hugo` command again.
-
-You've successfully installed Hugo.
-
-### Build from Source on Mac
-
-If you want to compile Hugo yourself, you'll need to install Go (aka Golang). You can [install Go directly from the Go website](https://go.dev/dl/) or via Homebrew using the following command:
-
-```txt
-brew install go
-```
-
-#### Step 1: Get the Source
-
-If you want to compile a specific version of Hugo, go to <https://github.com/gohugoio/hugo/releases> and download the source code for the version of your choice. If you want to compile Hugo with all the latest changes (which might include bugs), clone the Hugo repository:
-
-```txt
-git clone https://github.com/gohugoio/hugo
-```
-
-{{% warning "Sometimes \"Latest\" = \"Bugs\""%}}
-Cloning the Hugo repository directly means taking the good with the bad. By using the bleeding-edge version of Hugo, you make your development susceptible to the latest features, as well as the latest bugs. Your feedback is appreciated. If you find a bug in the latest release, [please create an issue on GitHub](https://github.com/gohugoio/hugo/issues/new).
-{{% /warning %}}
-
-#### Step 2: Compiling
-
-Make the directory containing the source your working directory and then fetch Hugo's dependencies:
-
-```txt
-mkdir -p src/github.com/gohugoio
-ln -sf $(pwd) src/github.com/gohugoio/hugo
-
-go get
-```
-
-This will fetch the absolute latest version of the dependencies. If Hugo fails to build, it may be the result of a dependency's author introducing a breaking change.
-
-Once you have properly configured your directory, you can compile Hugo using the following command:
-
-```txt
-go build -o hugo main.go
-```
-
-Then place the `hugo` executable somewhere in your `$PATH`. You're now ready to start using Hugo.
-
-## Windows
-
-The following aims to be a complete guide to installing Hugo on your Windows PC.
-
-{{< youtube G7umPCU-8xc >}}
-
-### Assumptions for Windows
-
-1. You will use `C:\Hugo\Sites` as the starting point for your new project.
-2. You will use `C:\Hugo\bin` to store executable files.
-
-### Set up Your Directories
-
-You'll need a place to store the Hugo executable, your [content][], and the generated Hugo website:
-
-1. Open Windows Explorer.
-2. Create a new folder: `C:\Hugo`, assuming you want Hugo on your C drive, although this can go anywhere
-3. Create a subfolder in the Hugo folder: `C:\Hugo\bin`
-4. Create another subfolder in Hugo: `C:\Hugo\Sites`
-
-### Technical Users
-
-1. Download the latest zipped Hugo executable from [Hugo Releases][releases].
-2. Extract all contents to your `..\Hugo\bin` folder.
-3. Open Windows command-line (cmd, "DOS") to add the `hugo.exe` executable to your PATH
- * do `set PATH=%PATH%;C:\Hugo\bin` to have hugo in PATH for the currently opened cmd box
- * do `setx PATH "%PATH%;C:\Hugo\bin"` to have hugo in PATH for every newly opened cmd box
- * note: "setx", not "set", plus syntax 'key "val"', not 'key=val'
-
-> You may also use "Git CMD" from the [Git for Windows package](https://gitforwindows.org/) for the native Windows commands [set](https://ss64.com/nt/set.html) and [setx](https://ss64.com/nt/setx.html), but not "Git Bash", PowerShell, or any other "CLI" with different commands
-
-### Less-technical Users
-
-1. Go to the [Hugo Releases][releases] page.
-2. The latest release is announced on top. Scroll to the bottom of the release announcement to see the downloads. They're all ZIP files.
-3. Find the Windows files near the bottom (they're in alphabetical order, so Windows is last) – download either the 32-bit or 64-bit file depending on whether you have 32-bit or 64-bit Windows. (If you don't know, [see here](https://esupport.trendmicro.com/en-us/home/pages/technical-support/1038680.aspx).)
-4. Move the ZIP file into your `C:\Hugo\bin` folder.
-5. Double-click on the ZIP file and extract its contents. Be sure to extract the contents into the same `C:\Hugo\bin` folder – Windows will do this by default unless you tell it to extract somewhere else.
-6. You should now have three new files: The hugo executable (`hugo.exe`), `LICENSE`, and `README.md`.
-
-Now you need to add Hugo to your Windows PATH settings:
-
-#### For Windows 10 Users
-
-* Right click on the **Start** button.
-* Click on **System**.
-* Click on **Advanced System Settings** on the right.
-* Click on the **Environment Variables...** button on the bottom.
-* In the User variables section, select the row labeled "Path" and click the **Edit...** button.
-* Click the **Browse...** button and select the directory to which `hugo.exe` was extracted, which is `C:\Hugo\bin` if you went by the instructions above. *The path entry should be the folder where Hugo lives and not the binary itself.*
-* Click OK at every window to exit.
-
-#### For Windows 7 and 8.x users
-
-Windows 7 and 8.1 do not include the easy path editor included in Windows 10, so non-technical users on those platforms are advised to install a free third-party path editor like [Windows Environment Variables Editor].
-
-### Verify the Executable
-
-Run a few commands to verify that the executable is ready to run, and then build a sample site to get started.
-
-#### 1. Open a Command Prompt
-
-At the prompt, type `hugo help` and press the <kbd>Enter</kbd> key. You should see output that starts with:
-
-```txt
-hugo is the main command, used to build your Hugo site.
-
-Hugo is a Fast and Flexible Static Site Generator
-built with love by spf13 and friends in Go.
-
-Complete documentation is available at https://gohugo.io/.
-```
-
-If you do, then the installation is complete. If you don't, double-check the path that you placed the `hugo.exe` file in and that you typed that path correctly when you added it to your `PATH` variable. If you're still not getting the output, search the [Hugo discussion forum][forum] to see if others have already figured out our problem. If not, add a note---in the "Support" category---and be sure to include your command and the output.
-
-At the prompt, change your directory to the `Sites` directory.
-
-```txt
-C:\Program Files> cd C:\Hugo\Sites
-C:\Hugo\Sites>
-```
-
-#### 2. Run the Command
-
-Run the command to generate a new site. I'm using `example.com` as the name of the site.
-
-```txt
-C:\Hugo\Sites> hugo new site example.com
-```
-
-You should now have a directory at `C:\Hugo\Sites\example.com`. Change into that directory and list the contents. You should get output similar to the following:
-
-```txt
-C:\Hugo\Sites> cd example.com
-C:\Hugo\Sites\example.com> dir
-Directory of C:\hugo\sites\example.com
-
-04/13/2015 10:44 PM <DIR> .
-04/13/2015 10:44 PM <DIR> ..
-04/13/2015 10:44 PM <DIR> archetypes
-04/13/2015 10:44 PM 83 config.toml
-04/13/2015 10:44 PM <DIR> content
-04/13/2015 10:44 PM <DIR> data
-04/13/2015 10:44 PM <DIR> layouts
-04/13/2015 10:44 PM <DIR> static
- 1 File(s) 83 bytes
- 7 Dir(s) 6,273,331,200 bytes free
-```
-
-### Troubleshoot Windows Installation
-
-[@dhersam][] has created a nice video on common issues:
-
-{{< youtube c8fJIRNChmU >}}
-
-## Linux
-
-### Snap Package
-
-In any of the [Linux distributions that support snaps][snaps], you may install the "extended" Sass/SCSS version with this command:
-
-```txt
-snap install hugo --channel=extended
-```
-
-To install the non-extended version without Sass/SCSS support:
-
-```txt
-snap install hugo
-```
-
-To switch between the two, use either `snap refresh hugo --channel=extended` or `snap refresh hugo --channel=stable`.
-
-{{% note %}}
-Hugo installed via Snap can write only inside the user’s `$HOME` directory---and gvfs-mounted directories owned by the user---because of Snaps’ confinement and security model. More information is also available [in this related GitHub issue](https://github.com/gohugoio/hugo/issues/3143).
-{{% /note %}}
-
-### Debian and Ubuntu
-
-[@anthonyfok](https://github.com/anthonyfok) and friends in the [Debian Go Packaging Team](https://go-team.pages.debian.net/) maintains an official hugo [Debian package](https://packages.debian.org/hugo) which is shared with [Ubuntu](https://packages.ubuntu.com/hugo) and is installable via `apt-get`:
-
-```txt
-sudo apt-get install hugo
-```
-
-What this installs depends on your Debian/Ubuntu version. On Ubuntu bionic (18.04), this installs the non-extended version without Sass/SCSS support. On Ubuntu disco (19.04), this installs the extended version with Sass/SCSS support.
-
-This option is not recommended because the Hugo in Linux package managers for Debian and Ubuntu is usually a few versions behind as described [here](https://github.com/gcushen/hugo-academic/issues/703)
-
-### Arch Linux
-
-You can also install Hugo from the Arch Linux [community](https://www.archlinux.org/packages/community/x86_64/hugo/) repository. Applies also to derivatives such as Manjaro.
-
-```txt
-sudo pacman -S hugo
-```
-
-### Fedora, Red Hat and CentOS
-
-Fedora maintains an [official package for Hugo](https://packages.fedoraproject.org/pkgs/hugo/hugo) which may be installed with:
-
-```txt
-sudo dnf install hugo
-```
-
-For the latest version, the Hugo package maintained by [@daftaupe](https://github.com/daftaupe) at Fedora Copr is recommended:
-
-* <https://copr.fedorainfracloud.org/coprs/daftaupe/hugo/>
-
-See the [related discussion in the Hugo forums][redhatforum].
-
-### openSUSE Tumbleweed
-
-openSUSE maintains an [official package](https://software.opensuse.org/package/hugo) for the Tumbleweed rolling release distribution, it may be installed with:
-
-````txt
-sudo zypper install hugo
-````
-
-### Solus
-
-Solus includes Hugo in its package repository, it may be installed with:
-
-```txt
-sudo eopkg install hugo
-```
-
-## OpenBSD
-
-OpenBSD provides a package for Hugo via `pkg_add`:
-
-```txt
-doas pkg_add hugo
-```
-
-
-## Upgrade Hugo
-
-Upgrading Hugo is as easy as downloading and replacing the executable you’ve placed in your `PATH` or run `brew upgrade hugo` if using Homebrew.
-
-## Next Steps
-
-Now that you've installed Hugo, read the [Quick Start guide][quickstart] and explore the rest of the documentation. If you have questions, ask the Hugo community directly by visiting the [Hugo Discussion Forum][forum].
-
-[brew]: https://brew.sh/
-[macports]: https://www.macports.org/
-[Chocolatey]: https://chocolatey.org/
-[content]: /content-management/
-[@dhersam]: https://github.com/dhersam
-[forum]: https://discourse.gohugo.io
-[mage]: https://github.com/magefile/mage
-[dep]: https://github.com/golang/dep
-[highlight shortcode]: /content-management/shortcodes/#highlight
-[installgit]: https://git-scm.com/
-[GCC]: http://www.mingw.org/
-[installgo]: https://go.dev/dl/
-[linuxbrew]: https://docs.brew.sh/Homebrew-on-Linux
-[quickstart]: /getting-started/quick-start/
-[redhatforum]: https://discourse.gohugo.io/t/solved-fedora-copr-repository-out-of-service/2491
-[releases]: https://github.com/gohugoio/hugo/releases
-[Scoop]: https://scoop.sh/
-[snaps]: https://snapcraft.io/docs/installing-snapd
-[windowsarch]: https://esupport.trendmicro.com/en-us/home/pages/technical-support/1038680.aspx
-[Windows Environment Variables Editor]: https://eveditor.com/
diff --git a/content/en/installation/_index.md b/content/en/installation/_index.md
new file mode 100644
index 000000000..e5a34b1f2
--- /dev/null
+++ b/content/en/installation/_index.md
@@ -0,0 +1,15 @@
+---
+title: Installation
+linkTitle: Installation overview
+description: Install Hugo on macOS, Linux, Windows, BSD, and on any machine that can run the Go compiler tool chain.
+aliases: [/getting-started/installing/]
+categories: [installation]
+keywords: [installation]
+menu:
+ docs:
+ parent: installation
+ weight: 10
+toc: false
+---
+
+{{% param "description" %}}
diff --git a/content/en/installation/bsd.md b/content/en/installation/bsd.md
new file mode 100644
index 000000000..def64a187
--- /dev/null
+++ b/content/en/installation/bsd.md
@@ -0,0 +1,75 @@
+---
+title: BSD
+linkTitle: BSD
+description: Install Hugo on BSD derivatives.
+categories: [installation]
+menu:
+ docs:
+ parent: installation
+ weight: 50
+toc: true
+weight: 50
+---
+{{% readfile file="/installation/common/01-flavors.md" %}}
+
+{{% readfile file="/installation/common/02-prerequisites.md" %}}
+
+{{% readfile file="/installation/common/03-prebuilt-binaries.md" %}}
+
+## Repository packages
+
+Most BSD derivatives maintain a repository for commonly installed applications. Please note that these repositories may not contain the [latest release].
+
+[latest release]: https://github.com/gohugoio/hugo/releases/latest
+
+### DragonFly BSD
+
+[DragonFly BSD] includes Hugo in its package repository. This will install the extended flavor of Hugo:
+
+```sh
+sudo pkg install gohugo
+```
+
+[DragonFly BSD]: https://www.dragonflybsd.org/
+
+### FreeBSD
+
+[FreeBSD] includes Hugo in its package repository. This will install the extended flavor of Hugo:
+
+```sh
+sudo pkg install gohugo
+```
+
+[FreeBSD]: https://www.freebsd.org/
+
+### NetBSD
+
+[NetBSD] includes Hugo in its package repository. This will install the extended flavor of Hugo:
+
+```sh
+sudo pkgin install go-hugo
+```
+
+[NetBSD]: https://www.netbsd.org/
+
+### OpenBSD
+
+[OpenBSD] includes Hugo in its package repository. This will prompt you to select which flavor of Hugo to install:
+
+```sh
+sudo pkg_add hugo
+```
+
+[OpenBSD]: https://www.openbsd.org/
+
+## Comparison
+
+||Prebuilt binaries|Repository packages|Docker|Build from source
+:--|:--:|:--:|:--:|:--:
+Easy to install?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
+Easy to upgrade?|:heavy_check_mark:|varies|:heavy_check_mark:|:heavy_check_mark:
+Easy to downgrade?|:heavy_check_mark:|varies|:heavy_check_mark:|:heavy_check_mark:
+Automatic updates?|:x:|varies|:x: [^1]|:x:
+Latest version available?|:heavy_check_mark:|varies|:heavy_check_mark:|:heavy_check_mark:
+
+[^1]: Possible but requires advanced configuration.
diff --git a/content/en/installation/common/01-flavors.md b/content/en/installation/common/01-flavors.md
new file mode 100644
index 000000000..b78af2813
--- /dev/null
+++ b/content/en/installation/common/01-flavors.md
@@ -0,0 +1,8 @@
+## Flavors
+
+Hugo is available in two flavors: standard and extended. With the extended flavor you can:
+
+- Decode and encode WebP images
+- Transpile Sass to CSS using the embedded LibSass transpiler
+
+We recommend that you install the extended flavor.
diff --git a/content/en/installation/common/02-prerequisites.md b/content/en/installation/common/02-prerequisites.md
new file mode 100644
index 000000000..008370825
--- /dev/null
+++ b/content/en/installation/common/02-prerequisites.md
@@ -0,0 +1,27 @@
+## Prerequisites
+
+Although not required in all cases, Git and Go are often used when working with Hugo.
+
+Git is required to:
+
+- Use the [Hugo Modules] feature
+- Build Hugo from source
+- Install a theme as a Git submodule
+- Access [commit information] from a local Git repository
+- Host your site with services such as [AWS Amplify], [CloudCannon], [Cloudflare Pages], [GitHub Pages], [GitLab Pages], and [Netlify].
+
+Go is required to:
+
+- Use the Hugo Modules feature
+- Build Hugo from source
+
+Please refer to the [Git] and [Go] documentation for installation instructions.
+
+[AWS Amplify]: https://aws.amazon.com/amplify/
+[CloudCannon]: https://cloudcannon.com/
+[Cloudflare Pages]: https://pages.cloudflare.com/
+[Git]: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
+[GitHub Pages]: https://pages.github.com/
+[GitLab Pages]: https://docs.gitlab.com/ee/user/project/pages/
+[Go]: https://go.dev/doc/install
+[Netlify]: https://www.netlify.com/
diff --git a/content/en/installation/common/03-prebuilt-binaries.md b/content/en/installation/common/03-prebuilt-binaries.md
new file mode 100644
index 000000000..f69af504f
--- /dev/null
+++ b/content/en/installation/common/03-prebuilt-binaries.md
@@ -0,0 +1,21 @@
+## Prebuilt binaries
+
+Prebuilt binaries are available for a variety of operating systems and architectures. Visit the [latest release] page, and scroll down to the Assets section.
+
+<!-- markdownlint-disable-next-line MD051 -->
+1. Download the archive for the desired [flavor], operating system, and architecture
+1. Extract the archive
+1. Move the executable to the desired directory
+1. Add this directory to the PATH environment variable
+1. Verify that you have _execute_ permission on the file
+
+Please consult your operating system documentation if you need help setting file permissions or modifying your PATH environment variable.
+
+If you do not see a prebuilt binary for the desired flavor, operating system, and architecture, install Hugo using one of the methods described below.
+
+[commit information]: https://gohugo.io/variables/git
+[flavor]: #flavors
+[Git]: https://git-scm.com/
+[Go]: https://go.dev/
+[Hugo Modules]: /hugo-modules/
+[latest release]: https://github.com/gohugoio/hugo/releases/latest
diff --git a/content/en/installation/common/04-docker.md b/content/en/installation/common/04-docker.md
new file mode 100644
index 000000000..24f5cd942
--- /dev/null
+++ b/content/en/installation/common/04-docker.md
@@ -0,0 +1,10 @@
+## Docker
+
+[Erlend Klakegg Bergheim] graciously maintains [Docker images] based on images for Alpine Linux, Busybox, Debian, and Ubuntu.
+
+```sh
+docker pull klakegg/hugo
+```
+
+[Docker images]: https://hub.docker.com/r/klakegg/hugo
+[Erlend Klakegg Bergheim]: https://github.com/klakegg
diff --git a/content/en/installation/common/05-build-from-source.md b/content/en/installation/common/05-build-from-source.md
new file mode 100644
index 000000000..a135de9fd
--- /dev/null
+++ b/content/en/installation/common/05-build-from-source.md
@@ -0,0 +1,20 @@
+## Build from source
+
+To build Hugo from source you must:
+
+1. Install [Git]
+1. Install [Go] version 1.18 or later
+1. Update your PATH environment variable as described in the [Go documentation]
+
+> The install directory is controlled by the GOPATH and GOBIN environment variables. If GOBIN is set, binaries are installed to that directory. If GOPATH is set, binaries are installed to the bin subdirectory of the first directory in the GOPATH list. Otherwise, binaries are installed to the bin subdirectory of the default GOPATH ($HOME/go or %USERPROFILE%\go).
+
+Then build and test:
+
+```sh
+go install -tags extended github.com/gohugoio/hugo@latest
+hugo version
+```
+
+[Git]: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
+[Go]: https://go.dev/doc/install
+[Go documentation]: https://go.dev/doc/code#Command
diff --git a/content/en/installation/common/homebrew.md b/content/en/installation/common/homebrew.md
new file mode 100644
index 000000000..ba0ebb7fb
--- /dev/null
+++ b/content/en/installation/common/homebrew.md
@@ -0,0 +1,9 @@
+### Homebrew
+
+[Homebrew] is a free and open source package manager for macOS and Linux. This will install the extended flavor of Hugo:
+
+```sh
+brew install hugo
+```
+
+[Homebrew]: https://brew.sh/
diff --git a/content/en/installation/common/index.md b/content/en/installation/common/index.md
new file mode 100644
index 000000000..cbb7365a6
--- /dev/null
+++ b/content/en/installation/common/index.md
@@ -0,0 +1,3 @@
++++
+headless = true
++++
diff --git a/content/en/installation/linux.md b/content/en/installation/linux.md
new file mode 100644
index 000000000..73a62f925
--- /dev/null
+++ b/content/en/installation/linux.md
@@ -0,0 +1,125 @@
+---
+title: Linux
+linkTitle: Linux
+description: Install Hugo on Linux.
+categories: [installation]
+menu:
+ docs:
+ parent: installation
+ weight: 30
+toc: true
+weight: 30
+---
+{{% readfile file="/installation/common/01-flavors.md" %}}
+
+{{% readfile file="/installation/common/02-prerequisites.md" %}}
+
+{{% readfile file="/installation/common/03-prebuilt-binaries.md" %}}
+
+## Package managers
+
+### Snap
+
+[Snap] is a free and open source package manager for Linux. Available for [most distributions], Snap packages are simple to install and are automatically updated. This will install the extended flavor of Hugo:
+
+```sh
+sudo snap install hugo
+```
+
+[most distributions]: https://snapcraft.io/docs/installing-snapd
+[Snap]: https://snapcraft.io/
+
+{{% readfile file="/installation/common/homebrew.md" %}}
+
+## Repository packages
+
+Most Linux distributions maintain a repository for commonly installed applications. Please note that these repositories may not contain the [latest release].
+
+[latest release]: https://github.com/gohugoio/hugo/releases/latest
+
+### Arch Linux
+
+Derivatives of the [Arch Linux] distribution of Linux include [EndeavourOS], [Garuda Linux], [Manjaro], and others. This will install the extended flavor of Hugo:
+
+```sh
+sudo pacman -S hugo
+```
+
+[Arch Linux]: https://archlinux.org/
+[EndeavourOS]: https://endeavouros.com/
+[Manjaro]: https://manjaro.org/
+[Garuda Linux]: https://garudalinux.org/
+
+### Debian
+
+Derivatives of the [Debian] distribution of Linux include [elementary OS], [KDE neon], [Linux Lite], [Linux Mint], [MX Linux], [Pop!_OS], [Ubuntu], [Zorin OS], and others. This will install the extended flavor of Hugo:
+
+```sh
+sudo apt install hugo
+```
+
+You can also download Debian packages from the [latest release] page.
+
+[Debian]: https://www.debian.org/
+[elementary OS]: https://elementary.io/
+[KDE neon]: https://neon.kde.org/
+[Linux Lite]: https://www.linuxliteos.com/
+[Linux Mint]: https://linuxmint.com/
+[MX Linux]: https://mxlinux.org/
+[Pop!_OS]: https://pop.system76.com/
+[Ubuntu]: https://ubuntu.com/
+[Zorin OS]: https://zorin.com/os/
+
+### Fedora
+
+Derivatives of the [Fedora] distribution of Linux include [CentOS], [Red Hat Enterprise Linux], and others. This will install the extended flavor of Hugo:
+
+
+```sh
+sudo dnf install hugo
+```
+
+[CentOS]: https://www.centos.org/
+[Fedora]: https://getfedora.org/
+[Red Hat Enterprise Linux]: https://www.redhat.com/
+
+### openSUSE
+
+Derivatives of the [openSUSE] distribution of Linux include [GeckoLinux], [Linux Karmada], and others. This will install the extended flavor of Hugo:
+
+
+```sh
+sudo zypper install hugo
+```
+
+[GeckoLinux]: https://geckolinux.github.io/
+[Linux Karmada]: https://linuxkamarada.com/
+[openSUSE]: https://www.opensuse.org/
+
+### Solus
+
+The [Solus] distribution of Linux includes Hugo in its package repository. This will install the _standard_ flavor of Hugo:
+
+```sh
+sudo eopkg install hugo
+```
+
+[Solus]: https://getsol.us/home/
+
+{{% readfile file="/installation/common/04-docker.md" %}}
+
+{{% readfile file="/installation/common/05-build-from-source.md" %}}
+
+## Comparison
+
+||Prebuilt binaries|Package managers|Repository packages|Docker|Build from source
+:--|:--:|:--:|:--:|:--:|:--:
+Easy to install?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
+Easy to upgrade?|:heavy_check_mark:|:heavy_check_mark:|varies|:heavy_check_mark:|:heavy_check_mark:
+Easy to downgrade?|:heavy_check_mark:|:heavy_check_mark: [^1]|varies|:heavy_check_mark:|:heavy_check_mark:
+Automatic updates?|:x:|varies [^2]|:x:|:x: [^3]|:x:
+Latest version available?|:heavy_check_mark:|:heavy_check_mark:|varies|:heavy_check_mark:|:heavy_check_mark:
+
+[^1]: Easy if a previous version is still installed.
+[^2]: Snap packages are automatically updated. Homebrew requires advanced configuration.
+[^3]: Possible but requires advanced configuration.
diff --git a/content/en/installation/macos.md b/content/en/installation/macos.md
new file mode 100644
index 000000000..bdf5054dc
--- /dev/null
+++ b/content/en/installation/macos.md
@@ -0,0 +1,48 @@
+---
+title: macOS
+linkTitle: macOS
+description: Install Hugo on macOS.
+categories: [installation]
+menu:
+ docs:
+ parent: installation
+ weight: 20
+toc: true
+weight: 20
+---
+{{% readfile file="/installation/common/01-flavors.md" %}}
+
+{{% readfile file="/installation/common/02-prerequisites.md" %}}
+
+{{% readfile file="/installation/common/03-prebuilt-binaries.md" %}}
+
+## Package managers
+
+{{% readfile file="/installation/common/homebrew.md" %}}
+
+### MacPorts
+
+[MacPorts] is a free and open source package manager for macOS. This will install the extended flavor of Hugo:
+
+```sh
+sudo port install hugo
+```
+
+[MacPorts]: https://www.macports.org/
+
+{{% readfile file="/installation/common/04-docker.md" %}}
+
+{{% readfile file="/installation/common/05-build-from-source.md" %}}
+
+## Comparison
+
+||Prebuilt binaries|Package managers|Docker|Build from source
+:--|:--:|:--:|:--:|:--:|:--:
+Easy to install?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
+Easy to upgrade?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
+Easy to downgrade?|:heavy_check_mark:|:heavy_check_mark: [^1]|:heavy_check_mark:|:heavy_check_mark:
+Automatic updates?|:x:|:x: [^2]|:x: [^2]|:x:
+Latest version available?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
+
+[^1]: Easy if a previous version is still installed.
+[^2]: Possible but requires advanced configuration.
diff --git a/content/en/installation/windows.md b/content/en/installation/windows.md
new file mode 100644
index 000000000..86327ae64
--- /dev/null
+++ b/content/en/installation/windows.md
@@ -0,0 +1,63 @@
+---
+title: Windows
+linkTitle: Windows
+description: Install Hugo on Windows.
+categories: [installation]
+menu:
+ docs:
+ parent: installation
+ weight: 40
+toc: true
+weight: 40
+---
+{{% readfile file="/installation/common/01-flavors.md" %}}
+
+{{% readfile file="/installation/common/02-prerequisites.md" %}}
+
+{{% readfile file="/installation/common/03-prebuilt-binaries.md" %}}
+
+## Package managers
+
+### Chocolatey
+
+[Chocolatey] is a free and open source package manager for Windows. This will install the extended flavor of Hugo:
+
+```sh
+choco install hugo-extended
+```
+
+[Chocolatey]: https://chocolatey.org/
+
+### Scoop
+
+[Scoop] is a free and open source package manager for Windows. This will install the extended flavor of Hugo:
+
+```sh
+scoop install hugo-extended
+```
+
+[Scoop]: https://scoop.sh/
+
+{{% readfile file="/installation/common/04-docker.md" %}}
+
+{{% readfile file="/installation/common/05-build-from-source.md" %}}
+
+{{% note %}}
+When building the extended flavor of Hugo from source on Windows, you will also need to install the [GCC compiler]. See these [detailed instructions].
+
+[detailed instructions]: https://discourse.gohugo.io/t/41370
+[GCC compiler]: https://gcc.gnu.org/
+{{% /note %}}
+
+## Comparison
+
+||Prebuilt binaries|Package managers|Docker|Build from source
+:--|:--:|:--:|:--:|:--:|:--:
+Easy to install?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
+Easy to upgrade?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
+Easy to downgrade?|:heavy_check_mark:|:heavy_check_mark: [^2]|:heavy_check_mark:|:heavy_check_mark:
+Automatic updates?|:x:|:x: [^1]|:x: [^1]|:x:
+Latest version available?|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:
+
+[^1]: Possible but requires advanced configuration.
+[^2]: Easy if a previous version is still installed.
diff --git a/content/en/troubleshooting/faq.md b/content/en/troubleshooting/faq.md
index 4b9dfca46..97a6aee1c 100644
--- a/content/en/troubleshooting/faq.md
+++ b/content/en/troubleshooting/faq.md
@@ -58,14 +58,3 @@ error: failed to transform resource: TOCSS: failed to transform "scss/main.scss"
We release two set of binaries for technical reasons. The extended version is not what you get by default for some installation methods. On the [release page](https://github.com/gohugoio/hugo/releases), look for archives with `extended` in the name. To build `hugo-extended`, use `go install --tags extended`
To confirm, run `hugo version` and look for the word `extended`.
-
-## Do I need to install Git to create, deploy, and maintain a website with Hugo?
-
->Technically, no.
->
->Practically, yes.
-
-* The primary installation method documented by most (perhaps all) themes is via Git or the Hugo Modules feature.
-* The Hugo Modules feature requires Go, and Go “gets” with Git.
-* A Git repository is required by CI/CD hosting (Bitbucket, Cloudflare, GitHub Pages, GitLab Pages, Netlify, et. al.).
-* The canonical “last modified” date for content is its Git committer date; using anything else is error-prone.