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
: (`bool`) Whether to automatically detect [CJK](g) languages in content. Affects the values returned by the [`WordCount`][]and [`FuzzyWordCount`][] methods. Default is `false`.
130
+
: (`bool`) Whether to automatically detect [CJK](g) languages in content. Affects the values returned by the [`FuzzyWordCount`][], [`ReadingTime`][], [`Summary`][], and [`WordCount`][] methods. To override this behavior on a given page, set the [`isCJKLanguage`][] field in its front matter. Default is `false`.
131
131
132
132
`HTTPCache`
133
133
: See [configure HTTP cache][].
@@ -360,10 +360,12 @@ Some configuration settings, such as menus and custom parameters, can be defined
Copy file name to clipboardExpand all lines: content/en/content-management/front-matter.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ The most common front matter fields are `date`, `draft`, `title`, and `weight`,
63
63
: (`bool`) Applicable to [leaf bundles][], whether to set the `render` and `list`[build options][] to `never`, creating a headless bundle of [page resources][].
64
64
65
65
`isCJKLanguage`
66
-
: (`bool`) Whether the content language is in the[CJK](g)family. This value determines how Hugo calculates word count, and affects the values returned by the [`WordCount`][], [`FuzzyWordCount`][], [`ReadingTime`][], and [`Summary`][] methods on a `Page` object.
66
+
: (`bool`) Whether the content is in a[CJK](g)language. This value determines how Hugo calculates word count, and affects the values returned by the [`FuzzyWordCount`][], [`ReadingTime`][], [`Summary`][], and [`WordCount`][] methods on a `Page` object. When set, this value takes precedence over the automatic detection enabled by the [`hasCJKLanguage`][] setting in your project configuration.
67
67
68
68
`keywords`
69
69
: (`[]string`) An array of keywords, typically rendered within a `meta` element within the `head` element of the published HTML file, or used as a [taxonomy](g) to classify content. Access these values from a template using the [`Keywords`][] method on a `Page` object.
@@ -307,10 +307,10 @@ To override the default time zone, set the [`timeZone`][] in your project config
307
307
[`Description`]: /methods/page/description/
308
308
[`Draft`]: /methods/page/draft/
309
309
[`ExpiryDate`]: /methods/page/expirydate/
310
-
[`FuzzyWordCount`]: /methods/page/wordcount/
310
+
[`FuzzyWordCount`]: /methods/page/fuzzywordcount/
311
311
[`GetTerms`]: /methods/page/getterms/
312
312
[`Keywords`]: /methods/page/keywords/
313
-
[`Lastmod`]: /methods/page/date/
313
+
[`Lastmod`]: /methods/page/lastmod/
314
314
[`Layout`]: /methods/page/layout/
315
315
[`LinkTitle`]: /methods/page/linktitle/
316
316
[`Param`]: /methods/page/param/
@@ -325,6 +325,7 @@ To override the default time zone, set the [`timeZone`][] in your project config
Copy file name to clipboardExpand all lines: content/en/methods/page/FuzzyWordCount.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,8 @@ params:
16
16
To get the exact word count, use the [`WordCount`][] method.
17
17
18
18
> [!NOTE]
19
-
> For content in CJK languages (Chinese, Japanese, Korean), set [`hasCJKLanguage`][] to `true` in your site configuration. This setting affects FuzzyWordCount in the same way as WordCount.
19
+
> For content in [CJK](g) languages, set [`hasCJKLanguage`][] to `true` in your project configuration. When enabled, Hugo applies CJK word counting rules to pages containing CJK characters. To override this behavior on a given page, set the [`isCJKLanguage`][] field in its front matter.
Copy file name to clipboardExpand all lines: content/en/methods/page/ReadingTime.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,10 @@ params:
9
9
signatures: [PAGE.ReadingTime]
10
10
---
11
11
12
-
The estimated reading time is calculated by dividing the number of words in the content by the reading speed.
13
-
14
-
By default, Hugo assumes a reading speed of 212 words per minute. For CJK languages, it assumes 500 words per minute.
12
+
Hugo calculates the estimated reading time by dividing the number of words in the content by a reading speed of 212 words per minute.
15
13
16
14
> [!NOTE]
17
-
> To use the CJK reading speed, set [`hasCJKLanguage`][] to `true` in your site configuration. Hugo automatically applies the CJK rate when this setting is enabled and the page contains CJK characters.
15
+
> For content in [CJK](g) languages, set [`hasCJKLanguage`][] to `true` in your project configuration. When enabled, Hugo applies CJK word counting rules and a reading speed of 500 words per minute to pages containing CJK characters. To override this behavior on a given page, set the [`isCJKLanguage`][] field in its front matter.
Copy file name to clipboardExpand all lines: content/en/methods/page/WordCount.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,11 @@ params:
13
13
{{ .WordCount }} → 103
14
14
```
15
15
16
-
To round up to nearest multiple of 100, use the [`FuzzyWordCount`][] method.
16
+
To round up to the nearest multiple of 100, use the [`FuzzyWordCount`][] method.
17
17
18
18
> [!NOTE]
19
-
> For content in CJK languages (Chinese, Japanese, Korean), set [`hasCJKLanguage`][] to `true` in your site configuration. When enabled, Hugo applies CJK word counting rules to pages containing CJK characters.
19
+
> For content in [CJK](g) languages, set [`hasCJKLanguage`][] to `true` in your project configuration. When enabled, Hugo applies CJK word counting rules to pages containing CJK characters. To override this behavior on a given page, set the [`isCJKLanguage`][] field in its front matter.
0 commit comments