Fixing typos

This commit is contained in:
Andreas Deininger 2024-03-28 21:58:00 +01:00 committed by GitHub
parent b179f3b7f2
commit 12bebaaea0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ toc: true
: Reduce build time and cost by rendering a partial template once then cache the result, either globally or within a given context. For example, cache the result of an asset pipeline to prevent reprocessing on every rendered page. : Reduce build time and cost by rendering a partial template once then cache the result, either globally or within a given context. For example, cache the result of an asset pipeline to prevent reprocessing on every rendered page.
[Segmentation] [Segmentation]
: Reduce build time and cost by partioning your sites into segments. For example, render the home page and the "news section" every hour, and render the entire site once a week. : Reduce build time and cost by partitioning your sites into segments. For example, render the home page and the "news section" every hour, and render the entire site once a week.
[Minification] [Minification]
: Minify HTML, CSS, and JavaScript to reduce file size, bandwidth consumption, and loading times. : Minify HTML, CSS, and JavaScript to reduce file size, bandwidth consumption, and loading times.

View File

@ -587,7 +587,7 @@ To support Multilingual mode in your themes, some considerations must be taken f
* Come from the built-in `.Permalink` or `.RelPermalink` * Come from the built-in `.Permalink` or `.RelPermalink`
* Be constructed with the [`relLangURL`] or [`absLangURL`] template function, or be prefixed with `{{ .LanguagePrefix }}` * Be constructed with the [`relLangURL`] or [`absLangURL`] template function, or be prefixed with `{{ .LanguagePrefix }}`
If there is more than one language defined, the `LanguagePrefix` method will return `/en` (or whatever the current language is). If not enabled, it will be an empty string (and is therefor harmless for single-language Hugo websites). If there is more than one language defined, the `LanguagePrefix` method will return `/en` (or whatever the current language is). If not enabled, it will be an empty string (and is therefore harmless for single-language Hugo websites).
## Generate multilingual content with `hugo new content` ## Generate multilingual content with `hugo new content`

View File

@ -349,7 +349,7 @@ Some methods take an argument. Separate the argument from the method with a spac
{{% note %}} {{% note %}}
Do not attempt to use HTML comment delimiters to comment out template code. Do not attempt to use HTML comment delimiters to comment out template code.
Hugo strips HTML comments when rendering a page, but first evaluates any template code within the HTML comment delimiters. Depending on the template code within the HTML comment delimeters, this could cause unexpected results or fail the build. Hugo strips HTML comments when rendering a page, but first evaluates any template code within the HTML comment delimiters. Depending on the template code within the HTML comment delimiters, this could cause unexpected results or fail the build.
{{% /note %}} {{% /note %}}
Template comments are similar to template actions. Paired opening and closing braces represent the beginning and end of a comment. For example: Template comments are similar to template actions. Paired opening and closing braces represent the beginning and end of a comment. For example: