mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 18:44:46 -04:00
Fixing typos
This commit is contained in:
parent
b179f3b7f2
commit
12bebaaea0
@ -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.
|
||||
|
||||
[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]
|
||||
: Minify HTML, CSS, and JavaScript to reduce file size, bandwidth consumption, and loading times.
|
||||
|
@ -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`
|
||||
* 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`
|
||||
|
||||
|
@ -349,7 +349,7 @@ Some methods take an argument. Separate the argument from the method with a spac
|
||||
{{% note %}}
|
||||
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 %}}
|
||||
|
||||
Template comments are similar to template actions. Paired opening and closing braces represent the beginning and end of a comment. For example:
|
||||
|
Loading…
x
Reference in New Issue
Block a user