Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugoDocs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Oliff <christianoliff@pm.me>2022-10-07 13:57:44 +0300
committerGitHub <noreply@github.com>2022-10-07 13:57:44 +0300
commit5636c208bd015646d63fe8b8dd85e89f8aebaaa2 (patch)
tree896bd2b82db96cb488e50c54651b3cec8f2e0bd1
parent3f2e26f77fe2432192627a41ad7302a4a0cfc96f (diff)
Grammar and spelling fixes (#1836)
-rw-r--r--.cspell.json14
-rw-r--r--content/en/about/hugo-and-gdpr.md2
-rw-r--r--content/en/content-management/diagrams.md3
-rw-r--r--content/en/content-management/front-matter.md2
-rw-r--r--content/en/content-management/multilingual.md4
-rw-r--r--content/en/content-management/related.md2
-rw-r--r--content/en/content-management/shortcodes.md4
-rw-r--r--content/en/content-management/syntax-highlighting.md2
-rw-r--r--content/en/contribute/development.md4
-rw-r--r--content/en/getting-started/configuration.md4
-rw-r--r--content/en/hosting-and-deployment/hosting-on-21yunbox.md1
-rw-r--r--content/en/hosting-and-deployment/hosting-on-github.md4
-rw-r--r--content/en/hosting-and-deployment/hosting-on-netlify.md2
-rw-r--r--content/en/hugo-modules/configuration.md2
-rwxr-xr-xcontent/en/hugo-pipes/babel.md2
-rwxr-xr-xcontent/en/hugo-pipes/scss-sass.md4
-rw-r--r--content/en/templates/render-hooks.md2
-rw-r--r--content/en/variables/git.md2
18 files changed, 33 insertions, 27 deletions
diff --git a/.cspell.json b/.cspell.json
index 1a197ea7b..484259330 100644
--- a/.cspell.json
+++ b/.cspell.json
@@ -34,6 +34,7 @@
"brlink",
"Brotli",
"Browsersync",
+ "canonicalization",
"canonify",
"Catmull",
"Catwoman",
@@ -61,6 +62,7 @@
"datatable",
"DATOCMS",
"debugconfig",
+ "defang",
"DELIM",
"dhersam",
"digitalcraftsman",
@@ -79,10 +81,12 @@
"errorf",
"erroridf",
"Evernote",
+ "Exif",
"exitwp",
"expirydate",
"Feminella",
"firstpost",
+ "Flickr",
"Formspree",
"fpath",
"Francia",
@@ -95,6 +99,7 @@
"Getenv",
"getjson",
"getpage",
+ "Gitee",
"Gmfc",
"Goel",
"Gohugo",
@@ -188,6 +193,7 @@
"newparam",
"Nichlas",
"Nikhil",
+ "Nikola",
"Njjy",
"nlist",
"nobr",
@@ -257,6 +263,7 @@
"Sindre",
"sitemapindex",
"sitemapxml",
+ "slugorfilename",
"Smartcrop",
"Sprintf",
"Startseite",
@@ -278,6 +285,7 @@
"Tknx",
"TLDR",
"TMPDIR",
+ "toclevels",
"TOCSS",
"todos",
"tojson",
@@ -288,6 +296,8 @@
"toyaml",
"twitteruser",
"Unmarshal",
+ "unpublishdate",
+ "Unsharp",
"urlize",
"urlset",
"utimestamp",
@@ -301,15 +311,17 @@
"wibble",
"wordcount",
"workson",
+ "Wowchemy",
"wpxr",
"Xbaabbab",
"xvzf",
"yoyoyo",
+ "yunbox",
"Zgotmpl",
"zzbbaabb",
"مدونتي"
],
- "language": "en,en-GB,en-US,de,fr",
+ "language": "en,en-US,de,fr",
"allowCompoundWords": true,
"files": [
"**/*.md"
diff --git a/content/en/about/hugo-and-gdpr.md b/content/en/about/hugo-and-gdpr.md
index 269c5d432..81cc5782a 100644
--- a/content/en/about/hugo-and-gdpr.md
+++ b/content/en/about/hugo-and-gdpr.md
@@ -117,7 +117,7 @@ simple
: If simple mode is enabled, a static and no-JS version of a tweet will be built.
-**Note:** If you use the _simple mode_ for Twitter, you may want to disable the inlines styles provided by Hugo:
+**Note:** If you use the _simple mode_ for Twitter, you may want to disable the inline styles provided by Hugo:
{{< code-toggle file="config">}}
[services]
diff --git a/content/en/content-management/diagrams.md b/content/en/content-management/diagrams.md
index 7c12d7fff..cc2a68cb4 100644
--- a/content/en/content-management/diagrams.md
+++ b/content/en/content-management/diagrams.md
@@ -272,6 +272,3 @@ https://arthursonzogni.com/Diagon/#Table
│LITERAL = """" character { character } """" .│
└────────────────────────────────────────────────┘
```
-
-
-
diff --git a/content/en/content-management/front-matter.md b/content/en/content-management/front-matter.md
index 0d8c2e3a6..20862074a 100644
--- a/content/en/content-management/front-matter.md
+++ b/content/en/content-management/front-matter.md
@@ -68,7 +68,7 @@ cascade
: a map of Front Matter keys whose values are passed down to the page's descendants unless overwritten by self or a closer ancestor's cascade. See [Front Matter Cascade](#front-matter-cascade) for details.
date
-: the datetime assigned to this page. This is usually fetched from the `date` field in front matter, but this behaviour is configurable.
+: the datetime assigned to this page. This is usually fetched from the `date` field in front matter, but this behavior is configurable.
description
: the description for the content.
diff --git a/content/en/content-management/multilingual.md b/content/en/content-management/multilingual.md
index e2450bb29..3e75e22c4 100644
--- a/content/en/content-management/multilingual.md
+++ b/content/en/content-management/multilingual.md
@@ -229,7 +229,7 @@ If using `url`, remember to include the language part as well: `/fr/compagnie/a-
### Page Bundles
-To avoid the burden of having to duplicate files, each Page Bundle inherits the resources of its linked translated pages' bundles except for the content files (markdown files, html files etc...).
+To avoid the burden of having to duplicate files, each Page Bundle inherits the resources of its linked translated pages' bundles except for the content files (Markdown files, HTML files etc...).
Therefore, from within a template, the page will have access to the files from all linked pages' bundles.
@@ -570,7 +570,7 @@ If there is more than one language defined, the `LanguagePrefix` variable will e
## Generate multilingual content with `hugo new`
-Currently, `hugo new` is not ready to support generating multilingual content. But there is a [proposal topic](https://github.com/gohugoio/hugo/issues/7732) about this in Github issue to discuss how it should work.
+Currently, `hugo new` is not ready to support generating multilingual content. But there is a [proposal topic](https://github.com/gohugoio/hugo/issues/7732) about this in GitHub issue to discuss how it should work.
diff --git a/content/en/content-management/related.md b/content/en/content-management/related.md
index 9ede15252..c7262b42d 100644
--- a/content/en/content-management/related.md
+++ b/content/en/content-management/related.md
@@ -14,12 +14,10 @@ aliases: [/content/related/,/related/]
toc: true
---
-
Hugo uses a set of factors to identify a page's related content based on Front Matter parameters. This can be tuned to the desired set of indices and parameters or left to Hugo's default [Related Content configuration](#configure-related-content).
## List Related Content
-
To list up to 5 related pages (which share the same _date_ or _keyword_ parameters) is as simple as including something similar to this partial in your single page template:
{{< code file="layouts/partials/related.html" >}}
diff --git a/content/en/content-management/shortcodes.md b/content/en/content-management/shortcodes.md
index 017267ec7..c5a126ab1 100644
--- a/content/en/content-management/shortcodes.md
+++ b/content/en/content-management/shortcodes.md
@@ -249,7 +249,7 @@ By adding the preceding `hidecaption` example, the following HTML will be added
#### Example `instagram` Display
-Using the preceding `instagram` with `hidecaption` example above, the following simulates the displayed experience for visitors to your website. Naturally, the final display will be contingent on your stylesheets and surrounding markup.
+Using the preceding `instagram` with `hidecaption` example above, the following simulates the displayed experience for visitors to your website. Naturally, the final display will be contingent on your style sheets and surrounding markup.
{{< instagram BWNjjyYFxVx hidecaption >}}
@@ -414,7 +414,7 @@ Using the preceding `youtube` example, the following HTML will be added to your
#### Example `youtube` Display
-Using the preceding `youtube` example (without `autoplay="true"`), the following simulates the displayed experience for visitors to your website. Naturally, the final display will be contingent on your stylesheets and surrounding markup. The video is also include in the [Quick Start of the Hugo documentation][quickstart].
+Using the preceding `youtube` example (without `autoplay="true"`), the following simulates the displayed experience for visitors to your website. Naturally, the final display will be contingent on your style sheets and surrounding markup. The video is also include in the [Quick Start of the Hugo documentation][quickstart].
{{< youtube w7Ft2ymGmfc >}}
diff --git a/content/en/content-management/syntax-highlighting.md b/content/en/content-management/syntax-highlighting.md
index 5195b8211..1c5de035d 100644
--- a/content/en/content-management/syntax-highlighting.md
+++ b/content/en/content-management/syntax-highlighting.md
@@ -36,7 +36,7 @@ Run `hugo gen chromastyles -h` for more options. See https://xyproto.github.io/s
## Highlight Shortcode
-Highlighting is carried out via the built-in [`highlight` shortcode](https://gohugo.io/content-management/shortcodes/#highlight). It takes exactly one required parameter for the programming language to be highlighted and requires a closing shortcode. Note that `highlight` is *not* used for client-side javascript highlighting.
+Highlighting is carried out via the built-in [`highlight` shortcode](https://gohugo.io/content-management/shortcodes/#highlight). It takes exactly one required parameter for the programming language to be highlighted and requires a closing shortcode. Note that `highlight` is *not* used for client-side JavaScript highlighting.
Options:
diff --git a/content/en/contribute/development.md b/content/en/contribute/development.md
index 16489772e..41747f35e 100644
--- a/content/en/contribute/development.md
+++ b/content/en/contribute/development.md
@@ -65,7 +65,7 @@ You can print the `GOPATH` with `echo $GOPATH`. You should see a non-empty strin
### Install Go with Homebrew
-If you are a MacOS user and have [Homebrew](https://brew.sh/) installed on your machine, installing Go is as simple as the following command:
+If you are a macOS user and have [Homebrew](https://brew.sh/) installed on your machine, installing Go is as simple as the following command:
{{< code file="install-go.sh" >}}
brew install go
@@ -374,7 +374,7 @@ Check the commit log if everything looks as expected. Should an error occur you
### Push commits
-To push our commits to the fork on GitHub we need to specify a destination. A destination is defined by the remote and a branch name. Earlier, the defined that the remote url of our fork is the same as our GitHub handle, in my case `digitalcraftsman`. The branch should have the same as our local one. This makes it easy to identify corresponding branches.
+To push our commits to the fork on GitHub we need to specify a destination. A destination is defined by the remote and a branch name. Earlier, the defined that the remote URL of our fork is the same as our GitHub handle, in my case `digitalcraftsman`. The branch should have the same as our local one. This makes it easy to identify corresponding branches.
```
git push --set-upstream <YOUR-GITHUB-USERNAME> <BRANCHNAME>
diff --git a/content/en/getting-started/configuration.md b/content/en/getting-started/configuration.md
index 5b27832bb..dae323d87 100644
--- a/content/en/getting-started/configuration.md
+++ b/content/en/getting-started/configuration.md
@@ -23,7 +23,7 @@ Hugo uses the `config.toml`, `config.yaml`, or `config.json` (if found in the
site root) as the default site config file.
The user can choose to override that default with one or more site config files
-using the command line `--config` switch.
+using the command-line `--config` switch.
Examples:
@@ -548,7 +548,7 @@ status = 200
force = false
{{< /code-toggle >}}
-{{< new-in "0.76.0" >}} Setting `force=true` will make a redirect even if there is existing content in the path. Note that before Hugo 0.76 `force` was the default behaviour, but this is inline with how Netlify does it.
+{{< new-in "0.76.0" >}} Setting `force=true` will make a redirect even if there is existing content in the path. Note that before Hugo 0.76 `force` was the default behavior, but this is inline with how Netlify does it.
## 404 Server Error Page
diff --git a/content/en/hosting-and-deployment/hosting-on-21yunbox.md b/content/en/hosting-and-deployment/hosting-on-21yunbox.md
index b0ea7a7cf..1d8120283 100644
--- a/content/en/hosting-and-deployment/hosting-on-21yunbox.md
+++ b/content/en/hosting-and-deployment/hosting-on-21yunbox.md
@@ -4,7 +4,6 @@ linktitle: Host on 21YunBox
description: Host your Hugo site with 21YunBox's blazing fast Chinese CDN, fully-managed SSL and auto deploys from Gitee.
date: 2021-01-06
publishdate: 2021-01-06
-lastmod: 2021-01-06
categories: [hosting and deployment]
keywords: [21yunbox,hosting,deployment]
authors: [Toby Glei]
diff --git a/content/en/hosting-and-deployment/hosting-on-github.md b/content/en/hosting-and-deployment/hosting-on-github.md
index 22acca568..431ad73fd 100644
--- a/content/en/hosting-and-deployment/hosting-on-github.md
+++ b/content/en/hosting-and-deployment/hosting-on-github.md
@@ -43,11 +43,11 @@ The GitHub Actions used in these instructions pull source content from the `main
As mentioned in the [GitHub Pages documentation][ghorgs], you can host a user/organization page in addition to project pages. Here are the key differences in GitHub Pages websites for Users and Organizations:
1. You must create a repository named `<USERNAME>.github.io` or `<ORGANIZATION>.github.io` to host your pages
-2. By default, content from the `main` branch is used to publish GitHub Pages - rather than the `gh-pages` branch which is the default for project sites. However, the GitHub Actions in these instructions publish to the `gh-pages` branch. Therefore, if you are publishing Github pages for a user or organization, you will need to change the publishing branch to `gh-pages`. See the instructions later in this document.
+2. By default, content from the `main` branch is used to publish GitHub Pages - rather than the `gh-pages` branch which is the default for project sites. However, the GitHub Actions in these instructions publish to the `gh-pages` branch. Therefore, if you are publishing GitHub pages for a user or organization, you will need to change the publishing branch to `gh-pages`. See the instructions later in this document.
## Build Hugo With GitHub Action
-GitHub executes your software development workflows. Everytime you push your code on the GitHub repository, Github Actions will build the site automatically.
+GitHub executes your software development workflows. Every time you push your code on the GitHub repository, GitHub Actions will build the site automatically.
Create a file in `.github/workflows/gh-pages.yml` containing the following content (based on [actions-hugo](https://github.com/marketplace/actions/hugo-setup)):
diff --git a/content/en/hosting-and-deployment/hosting-on-netlify.md b/content/en/hosting-and-deployment/hosting-on-netlify.md
index 1e2da8466..9fc1b6a62 100644
--- a/content/en/hosting-and-deployment/hosting-on-netlify.md
+++ b/content/en/hosting-and-deployment/hosting-on-netlify.md
@@ -136,7 +136,7 @@ git submodule update --rebase --remote
## Next Steps
-You now have a live website served over https, distributed through CDN, and configured for continuous deployment. Dig deeper into the Netlify documentation:
+You now have a live website served over HTTPS, distributed through CDN, and configured for continuous deployment. Dig deeper into the Netlify documentation:
1. [Using a Custom Domain][]
2. [Setting up HTTPS on Custom Domains][httpscustom]
diff --git a/content/en/hugo-modules/configuration.md b/content/en/hugo-modules/configuration.md
index 70de492ab..a91c47baa 100644
--- a/content/en/hugo-modules/configuration.md
+++ b/content/en/hugo-modules/configuration.md
@@ -31,7 +31,7 @@ noVendor {{< new-in "0.75.0" >}}
: A optional Glob pattern matching module paths to skip when vendoring, e.g. "github.com/**"
vendorClosest {{< new-in "0.81.0" >}}
-: When enabled, we will pick the vendored module closest to the module using it. The default behaviour is to pick the first. Note that there can still be only one dependency of a given module path, so once it is in use it cannot be redefined.
+: When enabled, we will pick the vendored module closest to the module using it. The default behavior is to pick the first. Note that there can still be only one dependency of a given module path, so once it is in use it cannot be redefined.
proxy
: Defines the proxy server to use to download remote modules. Default is `direct`, which means "git clone" and similar.
diff --git a/content/en/hugo-pipes/babel.md b/content/en/hugo-pipes/babel.md
index 7cf931f65..b39556ccf 100755
--- a/content/en/hugo-pipes/babel.md
+++ b/content/en/hugo-pipes/babel.md
@@ -66,7 +66,7 @@ verbose [bool]
: Log everything
sourceMap [string]
-: Output `inline` or `external` sourcemap from the babel compile. External sourcemaps will be written to the target with the output file name + ".map". Input sourcemaps can be read from js.Build and node modules and combined into the output sourcemaps.
+: Output `inline` or `external` sourcemap from the babel compile. External sourcemaps will be written to the target with the output filename + ".map". Input sourcemaps can be read from js.Build and node modules and combined into the output sourcemaps.
### Examples
diff --git a/content/en/hugo-pipes/scss-sass.md b/content/en/hugo-pipes/scss-sass.md
index c4a0a5520..25d3707dc 100755
--- a/content/en/hugo-pipes/scss-sass.md
+++ b/content/en/hugo-pipes/scss-sass.md
@@ -16,7 +16,7 @@ draft: false
---
-Any SASS or SCSS file can be transformed into a CSS file using `resources.ToCSS` which takes two arguments, the resource object and a map of options listed below.
+Any Sass or SCSS file can be transformed into a CSS file using `resources.ToCSS` which takes two arguments, the resource object and a map of options listed below.
```go-html-template
{{ $sass := resources.Get "sass/main.scss" }}
@@ -42,7 +42,7 @@ enableSourceMap [bool]
: When enabled, a source map will be generated.
includePaths [string slice]
-: Additional SCSS/SASS include paths. Paths must be relative to the project directory.
+: Additional SCSS/Sass include paths. Paths must be relative to the project directory.
```go-html-template
{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "includePaths" (slice "node_modules/myscss")) }}
diff --git a/content/en/templates/render-hooks.md b/content/en/templates/render-hooks.md
index 3d114dc96..5f56680d9 100644
--- a/content/en/templates/render-hooks.md
+++ b/content/en/templates/render-hooks.md
@@ -145,7 +145,7 @@ layouts
└── render-codeblock-bash.html
```
-The default behaviour for these code blocks is to do [Code Highlighting](/content-management/syntax-highlighting/#highlighting-in-code-fences), but since you can pass attributes to these code blocks, they can be used for almost anything. One example would be the built-in [GoAT Diagrams](/content-management/diagrams/#goat-diagrams-ascii) or this [Mermaid Diagram Code Block Hook](/content-management/diagrams/#mermaid-diagrams) example.
+The default behavior for these code blocks is to do [Code Highlighting](/content-management/syntax-highlighting/#highlighting-in-code-fences), but since you can pass attributes to these code blocks, they can be used for almost anything. One example would be the built-in [GoAT Diagrams](/content-management/diagrams/#goat-diagrams-ascii) or this [Mermaid Diagram Code Block Hook](/content-management/diagrams/#mermaid-diagrams) example.
The context (the ".") you receive in a code block template contains:
diff --git a/content/en/variables/git.md b/content/en/variables/git.md
index 58a285fd9..24878e350 100644
--- a/content/en/variables/git.md
+++ b/content/en/variables/git.md
@@ -53,6 +53,6 @@ The `GitInfo` object contains the following fields:
## `.Lastmod`
-If the `.GitInfo` feature is enabled, `.Lastmod` (on `Page`) is fetched from Git i.e. `.GitInfo.AuthorDate`. This behaviour can be changed by adding your own [front matter configuration for dates](/getting-started/configuration/#configure-front-matter).
+If the `.GitInfo` feature is enabled, `.Lastmod` (on `Page`) is fetched from Git i.e. `.GitInfo.AuthorDate`. This behavior can be changed by adding your own [front matter configuration for dates](/getting-started/configuration/#configure-front-matter).
[configuration]: /getting-started/configuration/