From c852fe4214dc3e8c600f42ee4e0e5128c4edd7c5 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sun, 14 Jan 2024 06:57:26 -0800 Subject: [PATCH] Add version verification step to quick start guide --- content/en/getting-started/quick-start.md | 9 ++++++++- content/en/installation/linux.md | 6 ++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/content/en/getting-started/quick-start.md b/content/en/getting-started/quick-start.md index 2a734c92c..a6c54b54c 100644 --- a/content/en/getting-started/quick-start.md +++ b/content/en/getting-started/quick-start.md @@ -10,6 +10,7 @@ menu: weight: 20 toc: true aliases: [/quickstart/,/overview/quickstart/] +minVersion: v0.112.0 --- In this tutorial you will: @@ -23,7 +24,7 @@ In this tutorial you will: 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] 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 {{% /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. ```text diff --git a/content/en/installation/linux.md b/content/en/installation/linux.md index 21b7f6eb4..7b75f149b 100644 --- a/content/en/installation/linux.md +++ b/content/en/installation/linux.md @@ -55,9 +55,11 @@ sudo snap disconnect hugo:ssh-keys Most Linux distributions maintain a repository for commonly installed applications. {{% 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 %}} ### Alpine Linux