mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-02 11:42:37 +00:00
Add version verification step to quick start guide
This commit is contained in:
@@ -10,6 +10,7 @@ menu:
|
|||||||
weight: 20
|
weight: 20
|
||||||
toc: true
|
toc: true
|
||||||
aliases: [/quickstart/,/overview/quickstart/]
|
aliases: [/quickstart/,/overview/quickstart/]
|
||||||
|
minVersion: v0.112.0
|
||||||
---
|
---
|
||||||
|
|
||||||
In this tutorial you will:
|
In this tutorial you will:
|
||||||
@@ -23,7 +24,7 @@ In this tutorial you will:
|
|||||||
|
|
||||||
Before you begin this tutorial you must:
|
Before you begin this tutorial you must:
|
||||||
|
|
||||||
1. [Install Hugo] (extended edition, v0.112.0 or later)
|
1. [Install Hugo] (extended edition, {{% param "minVersion" %}} or later)
|
||||||
1. [Install Git]
|
1. [Install Git]
|
||||||
|
|
||||||
You must also be comfortable working from the command line.
|
You must also be comfortable working from the command line.
|
||||||
@@ -45,6 +46,12 @@ PowerShell and Windows PowerShell [are different applications].
|
|||||||
[are different applications]: https://learn.microsoft.com/en-us/powershell/scripting/whats-new/differences-from-windows-powershell?view=powershell-7.3
|
[are different applications]: https://learn.microsoft.com/en-us/powershell/scripting/whats-new/differences-from-windows-powershell?view=powershell-7.3
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
|
Verify that you have installed Hugo {{% param "minVersion" %}} or later.
|
||||||
|
|
||||||
|
```text
|
||||||
|
hugo version
|
||||||
|
```
|
||||||
|
|
||||||
Run these commands to create a Hugo site with the [Ananke] theme. The next section provides an explanation of each command.
|
Run these commands to create a Hugo site with the [Ananke] theme. The next section provides an explanation of each command.
|
||||||
|
|
||||||
```text
|
```text
|
||||||
|
|||||||
@@ -55,9 +55,11 @@ sudo snap disconnect hugo:ssh-keys
|
|||||||
Most Linux distributions maintain a repository for commonly installed applications.
|
Most Linux distributions maintain a repository for commonly installed applications.
|
||||||
|
|
||||||
{{% note %}}
|
{{% note %}}
|
||||||
Due to Long Term Release policies, some Linux package repositories will not contain the [latest release].
|
The Hugo version available in package repositories varies based on Linux distribution and release, and in some cases will not be the [latest version].
|
||||||
|
|
||||||
[latest release]: https://github.com/gohugoio/hugo/releases/latest
|
Use one of the other installation methods if your package repository does not provide the desired version.
|
||||||
|
|
||||||
|
[latest version]: https://github.com/gohugoio/hugo/releases/latest
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
### Alpine Linux
|
### Alpine Linux
|
||||||
|
|||||||
Reference in New Issue
Block a user