Skip to content

Commit f26ca04

Browse files
authored
content: Miscellaneous edits
1 parent e272b20 commit f26ca04

File tree

15 files changed

+64
-38
lines changed

15 files changed

+64
-38
lines changed

content/en/_common/gomodules-info.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
_comment: Do not remove front matter.
33
---
44

5-
> [!warning] Hugo Modules are Go Modules
5+
> [!note] Hugo Modules are Go Modules
66
> 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.
77
>
88
> Go Modules resources:

content/en/configuration/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ The above sets the [`baseURL`], [`enableGitInfo`], and [`environment`] configura
230230
> [!note]
231231
> 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.
232232
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.
234234

235235
> [!note]
236236
> Environment variable names must be prefixed with `HUGO_`.

content/en/content-management/image-processing/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ Examples using the sunset image from above:
419419

420420
## Image processing performance consideration
421421

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.
423423

424424
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:
425425

content/en/contribute/development.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ go test ./...
109109
Commit your changes with a descriptive commit message:
110110

111111
- 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.
113116
- Add one or more "Fixes" or "Closes" keywords, each on its own line, referencing the [issues] addressed by this change.
114117

115118
For example:
@@ -125,8 +128,6 @@ Fixes #99998
125128
Closes #99999"
126129
```
127130

128-
See the [commit message guidelines] for details.
129-
130131
### Step 8
131132

132133
Push the new branch to your fork of the documentation repository.

content/en/contribute/documentation.md

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Adhere to these Markdown conventions:
2626
- Use [ATX] headings (levels 2-4), not [setext] headings.
2727
- Use [fenced code blocks], not [indented code blocks].
2828
- Use hyphens, not asterisks, for unordered [list items].
29-
- Use the [callouts](#callouts) instead bold text for emphasis.
29+
- Use [callouts](#callouts) instead of bold text for emphasis.
3030
- Do not mix [raw HTML] within Markdown.
3131
- Do not use bold text in place of a heading or description term (`dt`).
3232
- Remove consecutive blank lines.
@@ -76,6 +76,16 @@ Link to the [glossary] as needed and use terms consistently. Pay particular atte
7676
- Avoid formatted strings.
7777
- Keep them concise.
7878

79+
### Page descriptions
80+
81+
When writing the page `description` use imperative present tense when possible. For example:
82+
83+
{{< code-toggle file=content/en/functions/data/_index.md" fm=true >}}
84+
title: Data functions
85+
linkTitle: data
86+
description: Use these functions to read local or remote data files.
87+
{{< /code-toggle >}}
88+
7989
### Writing style
8090

8191
Use active voice and present tense wherever possible.
@@ -102,7 +112,7 @@ Yes → Hugo is fast.
102112
103113
### Function and method descriptions
104114

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".
106116

107117
### File paths and names
108118

@@ -260,47 +270,55 @@ draft = false
260270

261271
## Callouts
262272

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.
264280

265281
```text
266-
> [!NOTE]
282+
> [!note]
267283
> Useful information that users should know, even when skimming content.
268284
```
269285

270-
> [!NOTE]
286+
> [!note]
271287
> Useful information that users should know, even when skimming content.
272288
273289
```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.
276292
```
277293

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.
280296
281297
```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.
284300
```
285301

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.
288304
289305
```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.
292308
```
293309

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.
296312
297313
```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.
300316
```
301317

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+
304322

305323
## Shortcodes
306324

@@ -460,7 +478,7 @@ Commit your changes with a descriptive commit message:
460478
- 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
461479
- Use imperative present tense
462480
- 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.
464482

465483
For example:
466484

content/en/functions/css/Sass.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Run `hugo env` to list the active transpilers.
123123

124124
### Installing in a production environment
125125

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.
127127

128128
[^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.
129129

@@ -224,7 +224,6 @@ If you build Hugo from source and run `mage test -v`, the test will fail if you
224224

225225
[brew.sh]: https://brew.sh/
226226
[chocolatey.org]: https://community.chocolatey.org/packages/sass
227-
[ci/cd]: https://en.wikipedia.org/wiki/CI/CD
228227
[dart sass]: https://sass-lang.com/dart-sass
229228
[libsass]: https://sass-lang.com/libsass
230229
[prebuilt binaries]: https://github.com/sass/dart-sass/releases/latest

content/en/functions/css/TailwindCSS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Create a partial template to process the CSS with the Tailwind CSS CLI:
9393

9494
Call the partial template from your base template:
9595

96-
```go-html-template {file="layouts/default/baseof.html"}
96+
```go-html-template {file="layouts/_default/baseof.html"}
9797
<head>
9898
...
9999
{{ partialCached "css.html" . }}

content/en/getting-started/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public/
142142

143143
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.
144144

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].
146146

147147
Learn more in the [host and deploy] section.
148148

content/en/host-and-deploy/host-on-firebase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Here is your opportunity to include some commands before you run the deploy.
6060

6161
You can let in the default option (main)
6262

63-
After that Firebase has been set in your project with CI/CD. After that run:
63+
After that Firebase has been set in your project with [CI/CD](g). After that run:
6464

6565
```sh
6666
hugo && firebase deploy

content/en/host-and-deploy/host-on-gitlab-pages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The `baseURL` in your [site configuration](/configuration/) must reflect the ful
1919

2020
## Configure GitLab CI/CD
2121

22-
Define your [CI/CD](https://docs.gitlab.com/ee/ci/quick_start/) jobs by creating a `.gitlab-ci.yml` file in the root of your project.
22+
Define your [CI/CD](g) jobs by creating a `.gitlab-ci.yml` file in the root of your project.
2323

2424
```yaml {file=".gitlab-ci.yml" copy=true}
2525
variables:

0 commit comments

Comments
 (0)