Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Jan 7, 2024
1 parent 8150717 commit 44e4cb5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion content/en/contribute/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Level 6 markdown headings are styled as `dt` elements. This was implemented to s

## Code examples

Indent code by two spaces. With examples of template code, include a space after opening action delimiters, and include a space before closing action delimeters.
Indent code by two spaces. With examples of template code, include a space after opening action delimiters, and include a space before closing action delimiters.

### Fenced code blocks

Expand Down
2 changes: 1 addition & 1 deletion content/en/functions/fmt/Warnf.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The `warnf` function evaluates the format string, then prints the result to the
{{ warnf "The %q shortcode was unable to find %s. See %s" .Name $file .Position }}
```

To prevent supression of duplicate messages when using `warnf` for debugging, make each message unique with the [`math.Counter`] function. For example:
To prevent suppression of duplicate messages when using `warnf` for debugging, make each message unique with the [`math.Counter`] function. For example:


```go-html-template
Expand Down
2 changes: 1 addition & 1 deletion content/en/functions/go-template/with.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Use with the [`else`] statement:
{{ end }}
```

Intialize a variable, scoped to the current block:
Initialize a variable, scoped to the current block:

```go-html-template
{{ with $var := 42 }}
Expand Down
2 changes: 1 addition & 1 deletion content/en/functions/openapi3/Unmarshal.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Use the `openapi3.Unmarshal` function with [global], [page], or [remote] resourc
[remote]: /getting-started/glossary/#remote-resource
[OpenAPI]: https://www.openapis.org/

For example, to work with a remote [OpenAPI] defintion:
For example, to work with a remote [OpenAPI] definition:

```go-html-template
{{ $url := "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json" }}
Expand Down
2 changes: 1 addition & 1 deletion content/en/troubleshooting/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ aliases: [/troubleshooting/build-performance/]

## Template metrics

Hugo is fast, but inefficient templates impede performance. Enable template metrics to determine which templates take the most time, and to identify caching opportunties:
Hugo is fast, but inefficient templates impede performance. Enable template metrics to determine which templates take the most time, and to identify caching opportunities:

```sh
hugo --templateMetrics --templateMetricsHints
Expand Down
4 changes: 2 additions & 2 deletions layouts/shortcodes/quick-reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{ with .Get "section" }}
{{ $section = . }}
{{ else }}
{{ errorf "The %q shortcodes requires a 'section' parameter. See %s" .Name .Postion }}
{{ errorf "The %q shortcodes requires a 'section' parameter. See %s" .Name .Position }}
{{ end }}

{{/* Do not change the markdown indentation, and do not remove blank lines. */}}
Expand All @@ -35,5 +35,5 @@
{{ end }}
{{ end }}
{{ else }}
{{ errorf "The %q shortcodes was unable to find the %q section. See %s" .Name $section .Postion }}
{{ errorf "The %q shortcodes was unable to find the %q section. See %s" .Name $section .Position }}
{{ end }}

0 comments on commit 44e4cb5

Please sign in to comment.