You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/configuration/all.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -319,7 +319,7 @@ versions
319
319
320
320
Hugo's file cache directory is configurable via the [`cacheDir`] configuration option or the `HUGO_CACHEDIR` environment variable. If neither is set, Hugo will use, in order of preference:
321
321
322
-
1. If running on Netlify: `/opt/build/cache/hugo_cache/`. This means that if you run your builds on Netlify, all caches configured with `:cacheDir` will be saved and restored on the next build. For other [CI/CD](g)vendors, please read their documentation. For an CircleCI example, see [this configuration].
322
+
1. If running on Netlify: `/opt/build/cache/hugo_cache/`. This means that if you run your builds on Netlify, all caches configured with `:cacheDir` will be saved and restored on the next build. For other [CI/CD](g)platforms, please read their documentation. For a CircleCI example, see [this configuration].
323
323
1. In a `hugo_cache` directory below the OS user cache directory as defined by Go's [os.UserCacheDir] function. On Unix systems, per the [XDG base directory specification], this is `$XDG_CACHE_HOME` if non-empty, else `$HOME/.cache`. On MacOS, this is `$HOME/Library/Caches`. On Windows, this is`%LocalAppData%`. On Plan 9, this is `$home/lib/cache`.
324
324
1. In a `hugo_cache_$USER` directory below the OS temp dir.
Copy file name to clipboardExpand all lines: content/en/configuration/introduction.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,7 +235,7 @@ The above sets the [`baseURL`], [`enableGitInfo`], and [`environment`] configura
235
235
> [!note]
236
236
> An environment variable takes precedence over the values set in the configuration file. This means that if you set a configuration value with both an environment variable and in the configuration file, the value in the environment variable will be used.
237
237
238
-
Environment variables simplify configuration for [CI/CD](g)deployments like GitHub Pages, GitLab Pages, and Netlify by allowing you to set values directly within their respective configuration and workflow files.
238
+
Environment variables simplify configuration for [CI/CD](g)platforms by allowing you to set values directly within their respective configuration and workflow files.
239
239
240
240
> [!note]
241
241
> Environment variable names must be prefixed with `HUGO_`.
Copy file name to clipboardExpand all lines: content/en/content-management/image-processing/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -417,7 +417,7 @@ Examples using the sunset image from above:
417
417
418
418
## Image processing performance consideration
419
419
420
-
Hugo caches processed images in the `resources` directory. If you include this directory in source control, Hugo will not have to regenerate the images in a [CI/CD](g)workflow (e.g., GitHub Pages, GitLab Pages, Netlify, etc.). This results in faster builds.
420
+
Hugo caches processed images in the `resources` directory. If you include this directory in source control, Hugo will not have to regenerate the images on [CI/CD](g)platforms. This results in faster builds.
421
421
422
422
If you change image processing methods or options, or if you rename or remove images, the `resources` directory will contain unused images. To remove the unused images, perform garbage collection with:
Copy file name to clipboardExpand all lines: content/en/functions/css/Sass.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,14 +125,14 @@ Run `hugo env` to list the active transpilers.
125
125
126
126
### Installing in a production environment
127
127
128
-
To use Dart Sass with Hugo on a CI/CD platform like GitHub Pages, GitLab Pages, or Netlify, you typically must modify your build workflow to install Dart Sass before the Hugo site build begins. This is because these platforms don't have Dart Sass pre-installed, and Hugo needs it to process your Sass files.
128
+
To use Dart Sass with Hugo on a [CI/CD](g) platform, you typically must modify your build workflow to install Dart Sass before the Hugo site build begins. This is because these platforms don't have Dart Sass pre-installed, and Hugo needs it to process your Sass files.
129
129
130
130
There's one key exception where you can skip this step: you have committed your `resources` directory to your repository. This is only possible if:
131
131
132
132
- You have not changed Hugo's default asset cache location.
133
133
- You have not set [`useResourceCacheWhen`][] to never in your sites configuration.
134
134
135
-
By committing the `resources` directory, you're providing the pre-built CSS files directly to your CI/CD service, so it doesn't need to run the Sass compilation itself.
135
+
By committing the `resources` directory, you're providing the pre-built CSS files directly to your CI/CD platform, so it doesn't need to run the Sass compilation itself.
136
136
137
137
For examples of how to install Dart Sass in a production environment, see these hosting guides:
0 commit comments