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/_common/gomodules-info.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
@@ -2,7 +2,7 @@
2
2
_comment: Do not remove front matter.
3
3
---
4
4
5
-
> [!warning] Hugo Modules are Go Modules
5
+
> [!note] Hugo Modules are Go Modules
6
6
> You need [Go] version 1.18 or later and [Git] to use Hugo Modules. For older sites hosted on Netlify, please ensure the `GO_VERSION` environment variable is set to `1.18` or higher.
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
@@ -230,7 +230,7 @@ The above sets the [`baseURL`], [`enableGitInfo`], and [`environment`] configura
230
230
> [!note]
231
231
> 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.
232
232
233
-
Environment variables simplify configuration for CI/CD deployments like GitHub Pages, GitLab Pages, and Netlify by allowing you to set values directly within their respective configuration and workflow files.
233
+
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.
234
234
235
235
> [!note]
236
236
> 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
@@ -419,7 +419,7 @@ Examples using the sunset image from above:
419
419
420
420
## Image processing performance consideration
421
421
422
-
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 workflow (e.g., GitHub Pages, GitLab Pages, Netlify, etc.). This results in faster builds.
422
+
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.
423
423
424
424
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/contribute/development.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,10 @@ go test ./...
109
109
Commit your changes with a descriptive commit message:
110
110
111
111
- Provide a summary on the first line, typically 50 characters or less, followed by a blank line.
112
-
- Optionally, provide a detailed description where each line is 80 characters or less, followed by a blank line.
112
+
- Begin the summary with one of content, theme, config, all, or misc, followed by a colon, a space, and a brief description of the change beginning with a capital letter
113
+
- Use imperative present tense
114
+
- See the [commit message guidelines] for requirements
115
+
- Optionally, provide a detailed description where each line is 72 characters or less, followed by a blank line.
113
116
- Add one or more "Fixes" or "Closes" keywords, each on its own line, referencing the [issues] addressed by this change.
114
117
115
118
For example:
@@ -125,8 +128,6 @@ Fixes #99998
125
128
Closes #99999"
126
129
```
127
130
128
-
See the [commit message guidelines] for details.
129
-
130
131
### Step 8
131
132
132
133
Push the new branch to your fork of the documentation repository.
description: Use these functions to read local or remote data files.
87
+
{{< /code-toggle >}}
88
+
79
89
### Writing style
80
90
81
91
Use active voice and present tense wherever possible.
@@ -102,7 +112,7 @@ Yes → Hugo is fast.
102
112
103
113
### Function and method descriptions
104
114
105
-
Start descriptions in the functions and methods sections with "Returns" or "Reports whether" for boolean values.
115
+
Start descriptions in the functions and methods sections with "Returns", of for booelan values, "Reports whether".
106
116
107
117
### File paths and names
108
118
@@ -260,47 +270,55 @@ draft = false
260
270
261
271
## Callouts
262
272
263
-
Also known as admonitions, use callouts to visually highlight important information. The type (e.g., NOTE, TIP) is case-insensitive.
273
+
To visually emphasize important information, use callouts (admonitions). Callout types are case-insensitive. Effective March 8, 2025, we utilize only three of the five available types.
274
+
275
+
- note (272 instances)
276
+
- warning (2 instances)
277
+
- caution (1 instance)
278
+
279
+
Limiting the number of callout types helps us to use them consistently.
264
280
265
281
```text
266
-
> [!NOTE]
282
+
> [!note]
267
283
> Useful information that users should know, even when skimming content.
268
284
```
269
285
270
-
> [!NOTE]
286
+
> [!note]
271
287
> Useful information that users should know, even when skimming content.
272
288
273
289
```text
274
-
> [!TIP]
275
-
> Helpful advice for doing things better or more easily.
290
+
> [!warning]
291
+
> Urgent info that needs immediate user attention to avoid problems.
276
292
```
277
293
278
-
> [!TIP]
279
-
> Helpful advice for doing things better or more easily.
294
+
> [!warning]
295
+
> Urgent info that needs immediate user attention to avoid problems.
280
296
281
297
```text
282
-
> [!IMPORTANT]
283
-
> Key information users need to know to achieve their goal.
298
+
> [!caution]
299
+
> Advises about risks or negative outcomes of certain actions.
284
300
```
285
301
286
-
> [!IMPORTANT]
287
-
> Key information users need to know to achieve their goal.
302
+
> [!caution]
303
+
> Advises about risks or negative outcomes of certain actions.
288
304
289
305
```text
290
-
> [!WARNING]
291
-
> Urgent info that needs immediate user attention to avoid problems.
306
+
> [!tip]
307
+
> Helpful advice for doing things better or more easily.
292
308
```
293
309
294
-
> [!WARNING]
295
-
> Urgent info that needs immediate user attention to avoid problems.
310
+
> [!tip]
311
+
> Helpful advice for doing things better or more easily.
296
312
297
313
```text
298
-
> [!CAUTION]
299
-
> Advises about risks or negative outcomes of certain actions.
314
+
> [!important]
315
+
> Key information users need to know to achieve their goal.
300
316
```
301
317
302
-
> [!CAUTION]
303
-
> Advises about risks or negative outcomes of certain actions.
318
+
> [!important]
319
+
> Key information users need to know to achieve their goal.
320
+
321
+
304
322
305
323
## Shortcodes
306
324
@@ -460,7 +478,7 @@ Commit your changes with a descriptive commit message:
460
478
- Begin the summary with one of `content`, `theme`, `config`, `all`, or `misc`, followed by a colon, a space, and a brief description of the change beginning with a capital letter
461
479
- Use imperative present tense
462
480
- Optionally, provide a detailed description where each line is 72 characters or less, followed by a blank line.
463
-
- Optionally, add one or more "Fixes" (for bugs) or "Closes" (for enhancements) keywords, each on its own line, referencing the [issues] addressed by this change.
481
+
- Optionally, add one or more "Fixes" or "Closes" keywords, each on its own line, referencing the [issues] addressed by this change.
Copy file name to clipboardExpand all lines: content/en/functions/css/Sass.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,7 @@ Run `hugo env` to list the active transpilers.
123
123
124
124
### Installing in a production environment
125
125
126
-
For [CI/CD] deployments (e.g., GitHub Pages, GitLab Pages, Netlify, etc.) you must edit the workflow to install Dart Sass before Hugo builds the site[^2]. Some providers allow you to use one of the package managers above, or you can download and extract one of the prebuilt binaries.
126
+
For [CI/CD](g) deployments (e.g., GitHub Pages, GitLab Pages, Netlify, etc.) you must edit the workflow to install Dart Sass before Hugo builds the site[^2]. Some providers allow you to use one of the package managers above, or you can download and extract one of the prebuilt binaries.
127
127
128
128
[^2]: You do not have to do this if (a) you have not modified the assets cache location, and (b) you have not set `useResourceCacheWhen` to `never` in your [site configuration], and (c) you add and commit your `resources` directory to your repository.
129
129
@@ -224,7 +224,6 @@ If you build Hugo from source and run `mage test -v`, the test will fail if you
Copy file name to clipboardExpand all lines: content/en/getting-started/usage.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
@@ -142,7 +142,7 @@ public/
142
142
143
143
In a simple hosting environment, where you typically `ftp`, `rsync`, or `scp` your files to the root of a virtual host, the contents of the `public` directory are all that you need.
144
144
145
-
Most of our users deploy their sites using a CI/CD workflow, where a push[^1] to their GitHub or GitLab repository triggers a build and deployment. Popular providers include [AWS Amplify], [CloudCannon], [Cloudflare Pages], [GitHub Pages], [GitLab Pages], and [Netlify].
145
+
Most of our users deploy their sites using a [CI/CD](g) workflow, where a push[^1] to their GitHub or GitLab repository triggers a build and deployment. Popular providers include [AWS Amplify], [CloudCannon], [Cloudflare Pages], [GitHub Pages], [GitLab Pages], and [Netlify].
0 commit comments