You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/about/features.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ weight: 20
92
92
## Performance
93
93
94
94
[Caching]
95
-
: 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.
95
+
: 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.
96
96
97
97
[Segmentation]
98
98
: 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.
Copy file name to clipboardExpand all lines: content/en/configuration/related-content.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ weight = 1
95
95
96
96
We've configured the `authors` index with a weight of `2` and the `genres` index with a weight of `1`. This means Hugo prioritizes shared `authors` as twice as significant as shared `genres`.
97
97
98
-
Then render a list of 5 related reviews with a partial template like this:
98
+
Then render a list of 5 related reviews with a _partial_ template like this:
Copy file name to clipboardExpand all lines: content/en/content-management/mathematics.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ inline = [['@', '@']]
85
85
86
86
### Step 2
87
87
88
-
Create a partial template to load MathJax or KaTeX. The example below loads MathJax, or you can use KaTeX as described in the [engines](#engines) section.
88
+
Create a _partial_ template to load MathJax or KaTeX. The example below loads MathJax, or you can use KaTeX as described in the [engines](#engines) section.
@@ -106,7 +106,7 @@ The delimiters above must match the delimiters in your site configuration.
106
106
107
107
### Step 3
108
108
109
-
Conditionally call the partial template from the base template.
109
+
Conditionally call the _partial_ template from the base template.
110
110
111
111
```go-html-template {file="layouts/baseof.html"}
112
112
<head>
@@ -118,7 +118,7 @@ Conditionally call the partial template from the base template.
118
118
</head>
119
119
```
120
120
121
-
The example above loads the partial template if you have set the `math` parameter in front matter to `true`. If you have not set the `math` parameter in front matter, the conditional statement falls back to the `math` parameter in your site configuration.
121
+
The example above loads the _partial_ template if you have set the `math` parameter in front matter to `true`. If you have not set the `math` parameter in front matter, the conditional statement falls back to the `math` parameter in your site configuration.
122
122
123
123
### Step 4
124
124
@@ -179,7 +179,7 @@ MathJax and KaTeX are open-source JavaScript display engines. Both engines are f
179
179
>
180
180
>See the [inline delimiters](#inline-delimiters) section for details.
181
181
182
-
To use KaTeX instead of MathJax, replace the partial template from [Step 2] with this:
182
+
To use KaTeX instead of MathJax, replace the _partial_ template from [Step 2] with this:
Copy file name to clipboardExpand all lines: content/en/content-management/sections.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ With the file structure from the [example above](#overview):
63
63
64
64
1. The list page for the articles section includes all articles, regardless of directory structure; none of the subdirectories are sections.
65
65
1. The articles/2022 and articles/2023 directories do not have list pages; they are not sections.
66
-
1. The list page for the products section, by default, includes product-1 and product-2, but not their descendant pages. To include descendant pages, use the `RegularPagesRecursive` method instead of the `Pages` method in the section template.
66
+
1. The list page for the products section, by default, includes product-1 and product-2, but not their descendant pages. To include descendant pages, use the `RegularPagesRecursive` method instead of the `Pages` method in the _section_ template.
67
67
1. All directories in the products section have list pages; each directory is a section.
Copy file name to clipboardExpand all lines: content/en/content-management/shortcodes.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Hugo's embedded shortcodes are pre-defined templates within the application. Ref
20
20
21
21
## Custom
22
22
23
-
Create custom shortcodes to simplify and standardize content creation. For example, the following shortcode template generates an audio player using a [global resource](g):
23
+
Create custom shortcodes to simplify and standardize content creation. For example, the following _shortcode_ template generates an audio player using a [global resource](g):
@@ -38,11 +38,11 @@ Learn more about creating shortcodes in the [shortcode templates] section.
38
38
39
39
## Inline
40
40
41
-
An inline shortcode is a shortcode template defined within content.
41
+
An inline shortcode is a _shortcode_ template defined within content.
42
42
43
43
Hugo's security model is based on the premise that template and configuration authors are trusted, but content authors are not. This model enables generation of HTML output safe against code injection.
44
44
45
-
To conform with this security model, creating shortcode templates within content is disabled by default. If you trust your content authors, you can enable this functionality in your site's configuration:
45
+
To conform with this security model, creating _shortcode_ templates within content is disabled by default. If you trust your content authors, you can enable this functionality in your site's configuration:
46
46
47
47
{{< code-toggle file=hugo >}}
48
48
[security]
@@ -69,7 +69,7 @@ In the example above, the inline shortcode is executed twice: once upon definiti
69
69
<p>Today is Thursday, January 30, 2025</p>
70
70
```
71
71
72
-
Inline shortcodes process their inner content within the same context as regular shortcode templates, allowing you to use any available [shortcode method].
72
+
Inline shortcodes process their inner content within the same context as regular _shortcode_ templates, allowing you to use any available [shortcode method].
73
73
74
74
> [!note]
75
75
> You cannot [nest](#nesting) inline shortcodes.
@@ -179,7 +179,7 @@ Hugo processes the shortcode before the page content is rendered by the Markdown
179
179
180
180
With standard notation, Hugo processes the shortcode separately, merging the output into the page content after Markdown rendering. This means, for instance, that Markdown headings inside a standard-notation shortcode will be excluded when invoking the `TableOfContents` method on the `Page` object.
181
181
182
-
By way of example, with this shortcode template:
182
+
By way of example, with this _shortcode_ template:
0 commit comments