mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
content: Fix GO_VERSION in Netlify hosting example
This commit is contained in:
committed by
GitHub
parent
8cc589c3a1
commit
722da91f15
@@ -141,8 +141,8 @@ To install Dart Sass for your builds on GitLab Pages, the `.gitlab-ci.yml` file
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
variables:
|
variables:
|
||||||
HUGO_VERSION: 0.144.2
|
HUGO_VERSION: 0.147.1
|
||||||
DART_SASS_VERSION: 1.85.0
|
DART_SASS_VERSION: 1.87.0
|
||||||
GIT_DEPTH: 0
|
GIT_DEPTH: 0
|
||||||
GIT_STRATEGY: clone
|
GIT_STRATEGY: clone
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
@@ -175,8 +175,8 @@ To install Dart Sass for your builds on Netlify, the `netlify.toml` file should
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.144.2"
|
HUGO_VERSION = "0.147.1"
|
||||||
DART_SASS_VERSION = "1.85.0"
|
DART_SASS_VERSION = "1.87.0"
|
||||||
NODE_VERSION = "22"
|
NODE_VERSION = "22"
|
||||||
TZ = "America/Los_Angeles"
|
TZ = "America/Los_Angeles"
|
||||||
|
|
||||||
|
|||||||
@@ -22,9 +22,9 @@ Let's say you need to publish a file named "site.json" in the root of your `publ
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"build_date": "2025-01-16T19:14:41-08:00",
|
"build_date": "2025-05-03T19:14:41-08:00",
|
||||||
"hugo_version": "0.141.0",
|
"hugo_version": "0.147.1",
|
||||||
"last_modified": "2025-01-16T19:14:46-08:00"
|
"last_modified": "2025-05-03T19:14:46-08:00"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@ version: 1
|
|||||||
env:
|
env:
|
||||||
variables:
|
variables:
|
||||||
# Application versions
|
# Application versions
|
||||||
DART_SASS_VERSION: 1.85.0
|
DART_SASS_VERSION: 1.87.0
|
||||||
GO_VERSION: 1.23.3
|
GO_VERSION: 1.24.2
|
||||||
HUGO_VERSION: 0.144.2
|
HUGO_VERSION: 0.147.1
|
||||||
# Time zone
|
# Time zone
|
||||||
TZ: America/Los_Angeles
|
TZ: America/Los_Angeles
|
||||||
# Cache
|
# Cache
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
HUGO_VERSION: 0.145.0
|
HUGO_VERSION: 0.147.1
|
||||||
HUGO_ENVIRONMENT: production
|
HUGO_ENVIRONMENT: production
|
||||||
TZ: America/Los_Angeles
|
TZ: America/Los_Angeles
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ variables:
|
|||||||
GIT_DEPTH: 0
|
GIT_DEPTH: 0
|
||||||
GIT_STRATEGY: clone
|
GIT_STRATEGY: clone
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
HUGO_VERSION: 0.146.7
|
HUGO_VERSION: 0.147.1
|
||||||
NODE_VERSION: 22.x
|
NODE_VERSION: 22.x
|
||||||
TZ: America/Los_Angeles
|
TZ: America/Los_Angeles
|
||||||
image:
|
image:
|
||||||
|
|||||||
@@ -113,8 +113,8 @@ Create a new file named netlify.toml in the root of your project directory. In i
|
|||||||
|
|
||||||
```toml {file="netlify.toml"}
|
```toml {file="netlify.toml"}
|
||||||
[build.environment]
|
[build.environment]
|
||||||
GO_VERSION = "1.24"
|
GO_VERSION = "1.24.2"
|
||||||
HUGO_VERSION = "0.146.7"
|
HUGO_VERSION = "0.147.1"
|
||||||
NODE_VERSION = "22"
|
NODE_VERSION = "22"
|
||||||
TZ = "America/Los_Angeles"
|
TZ = "America/Los_Angeles"
|
||||||
|
|
||||||
@@ -128,8 +128,8 @@ If your site requires Dart Sass to transpile Sass to CSS, the configuration file
|
|||||||
```toml {file="netlify.toml"}
|
```toml {file="netlify.toml"}
|
||||||
[build.environment]
|
[build.environment]
|
||||||
DART_SASS_VERSION = "1.87.0"
|
DART_SASS_VERSION = "1.87.0"
|
||||||
GO_VERSION = "1.24"
|
GO_VERSION = "1.24.2"
|
||||||
HUGO_VERSION = "0.146.7"
|
HUGO_VERSION = "0.147.1"
|
||||||
NODE_VERSION = "22"
|
NODE_VERSION = "22"
|
||||||
TZ = "America/Los_Angeles"
|
TZ = "America/Los_Angeles"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user