mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-09 16:16:20 -04:00
Fix typos
This commit is contained in:
parent
8150717423
commit
44e4cb5c64
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 }}
|
||||
|
@ -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" }}
|
||||
|
@ -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
|
||||
|
@ -11,7 +11,7 @@ Renders the child sections of the given top-level section, listing each childs's
|
||||
{{ 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. */}}
|
||||
@ -35,5 +35,5 @@ Renders the child sections of the given top-level section, listing each childs's
|
||||
{{ 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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user