Merge commit '7c62d6ef1654c0383eae474d3bd9ddf7754c1f30'

This commit is contained in:
Bjørn Erik Pedersen
2023-08-07 10:38:12 +02:00
43 changed files with 253 additions and 319 deletions

View File

@@ -100,7 +100,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.115.1
HUGO_VERSION: 0.115.4
steps:
- name: Install Hugo CLI
run: |

View File

@@ -27,8 +27,8 @@ Define your [CI/CD](https://docs.gitlab.com/ee/ci/quick_start/) jobs by creating
{{< code file=".gitlab-ci.yml" >}}
variables:
DART_SASS_VERSION: 1.63.6
HUGO_VERSION: 0.115.3
DART_SASS_VERSION: 1.64.1
HUGO_VERSION: 0.115.4
NODE_VERSION: 20.x
GIT_DEPTH: 0
GIT_STRATEGY: clone
@@ -46,8 +46,9 @@ pages:
# Install Dart Sass
- curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz
- tar -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz
- cp -r dart-sass/* /usr/local/bin
- cp -r dart-sass/ /usr/local/bin
- rm -rf dart-sass*
- export PATH=/usr/local/bin/dart-sass:$PATH
# Install Hugo
- curl -LJO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb
- apt-get install -y ./hugo_extended_${HUGO_VERSION}_linux-amd64.deb

View File

@@ -57,14 +57,14 @@ For production:
{{< code file="netlify.toml" >}}
[context.production.environment]
HUGO_VERSION = "0.99.1"
HUGO_VERSION = "0.115.4"
{{< /code >}}
For testing:
{{< code file="netlify.toml" >}}
[context.deploy-preview.environment]
HUGO_VERSION = "0.99.1"
HUGO_VERSION = "0.115.4"
{{< /code >}}
The Netlify configuration file can be a little hard to understand and get right for the different environment, and you may get some inspiration and tips from this site's `netlify.toml`: