Miscellaneous edits

This commit is contained in:
Joe Mooring 2023-12-07 06:40:10 -08:00 committed by Joe Mooring
parent 2bda491eb1
commit 8ed9cdaa94
6 changed files with 6 additions and 6 deletions

View File

@ -71,7 +71,7 @@ disabled
: (`bool`) If `true`, Hugo will not render content for this language. Default is `false`. : (`bool`) If `true`, Hugo will not render content for this language. Default is `false`.
languageCode languageCode
: (`string`) The language tag as defined by [RFC 5646]. This value may include upper and lower case characters, hyphens or underscores, and does not affect localization or URLs. Hugo uses this value to populate the `language` element in the [built-in RSS template], and the `lang` attribute of the `html` element in the [built-in alias template]. Examples: : (`string`) The language tag as defined by [RFC 5646]. This value may include upper and lower case characters, hyphens, or underscores, and does not affect localization or URLs. Hugo uses this value to populate the `language` element in the [built-in RSS template], and the `lang` attribute of the `html` element in the [built-in alias template]. Examples:
- `en` - `en`
- `en-GB` - `en-GB`

View File

@ -64,7 +64,7 @@ Comparison|Result
`false "eq" "false"`|`false` `false "eq" "false"`|`false`
`false "eq" false`|`true` `false "eq" false`|`true`
When one or both of the values to compare is a slice, use the `in`, `not in` or `intersect` operators as described below. When one or both of the values to compare is a slice, use the `in`, `not in`, or `intersect` operators as described below.
## Operators ## Operators

View File

@ -86,7 +86,7 @@ Do not use the global `page` function in:
- Partials called by shortcodes - Partials called by shortcodes
- Partials cached by the [`partialCached`] function - Partials cached by the [`partialCached`] function
Hugo caches rendered shortcodes. If you use the global `page` function within a shortcode, and the page content is rendered in two or more templates, the cached shortcodes may be incorrect. Hugo caches rendered shortcodes. If you use the global `page` function within a shortcode, and the page content is rendered in two or more templates, the cached shortcode may be incorrect.
Consider this section template: Consider this section template:

View File

@ -20,4 +20,4 @@ action:
{{ $style := $css | minify }} {{ $style := $css | minify }}
``` ```
Any CSS, JS, JSON, HTML, SVG or XML resource can be minified using resources.Minify which takes for argument the resource object. Any CSS, JS, JSON, HTML, SVG, or XML resource can be minified using resources.Minify which takes for argument the resource object.

View File

@ -17,7 +17,7 @@ action:
## Usage ## Usage
Any CSS, JS, JSON, HTML, SVG or XML resource can be minified using `resources.Minify` which takes for argument the resource object. Any CSS, JS, JSON, HTML, SVG, or XML resource can be minified using `resources.Minify` which takes for argument the resource object.
```go-html-template ```go-html-template
{{ $css := resources.Get "css/main.css" }} {{ $css := resources.Get "css/main.css" }}

View File

@ -29,7 +29,7 @@ A static website with a dynamic search function? Yes, Hugo provides an alternati
: A bit like Hugo-lunr, but Hugo-lunr-zh can help you separate the Chinese keywords. : A bit like Hugo-lunr, but Hugo-lunr-zh can help you separate the Chinese keywords.
[GitHub Gist for Fuse.js integration](https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae) [GitHub Gist for Fuse.js integration](https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae)
: This gist demonstrates how to leverage Hugo's existing build time processing to generate a searchable JSON index used by [Fuse.js](https://fusejs.io/) on the client-side. Although this gist uses Fuse.js for fuzzy matching, any client-side search tool capable of reading JSON indexes will work. Does not require npm, grunt or other build-time tools except Hugo! : This gist demonstrates how to leverage Hugo's existing build time processing to generate a searchable JSON index used by [Fuse.js](https://fusejs.io/) on the client-side. Although this gist uses Fuse.js for fuzzy matching, any client-side search tool capable of reading JSON indexes will work. Does not require npm, grunt, or other build-time tools except Hugo!
[hugo-search-index](https://www.npmjs.com/package/hugo-search-index) [hugo-search-index](https://www.npmjs.com/package/hugo-search-index)
: A library containing Gulp tasks and a prebuilt browser script that implements search. Gulp generates a search index from project markdown files. : A library containing Gulp tasks and a prebuilt browser script that implements search. Gulp generates a search index from project markdown files.