summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorcoderzh <pythonzh@gmail.com>2015-10-08 22:34:11 +0800
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-10-09 16:26:48 +0200
commitccd83c3040771ea496d41b63fa8cba2cecd46f0f (patch)
tree9eb19fbc3a328d3c3cbc835cd57b83da341a671b /docs
parent7b4e4769d070c3af97abaca9c1169f9e341be141 (diff)
Docs: Added `hasCJKLanguage` global config flag and `isCJKLanguage` FrontMatter
See #1399
Diffstat (limited to 'docs')
-rw-r--r--docs/content/content/front-matter.md1
-rw-r--r--docs/content/overview/configuration.md2
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/content/content/front-matter.md b/docs/content/content/front-matter.md
index 2a9d34a87..8d82fd958 100644
--- a/docs/content/content/front-matter.md
+++ b/docs/content/content/front-matter.md
@@ -95,6 +95,7 @@ Field names are always normalized to lowercase (e.g. `camelCase: true` is availa
* **draft** If true, the content will not be rendered unless `hugo` is called with `--buildDrafts`
* **publishdate** If in the future, content will not be rendered unless `hugo` is called with `--buildFuture`
* **type** The type of the content (will be derived from the directory automatically if unset)
+* **isCJKLanguage** If true, explicitly treat the content as CJKLanguage (.Summary and .WordCount can work properly in CJKLanguage)
* **weight** Used for sorting
* **markup** *(Experimental)* Specify `"rst"` for reStructuredText (requires
`rst2html`) or `"md"` (default) for Markdown
diff --git a/docs/content/overview/configuration.md b/docs/content/overview/configuration.md
index c1a0686e1..2a3f16f0b 100644
--- a/docs/content/overview/configuration.md
+++ b/docs/content/overview/configuration.md
@@ -135,6 +135,8 @@ Following is a list of Hugo-defined variables that you can configure and their c
uglyURLs: false
# Do not make the url/path to lowercase
disablePathToLower: false
+ # if true, auto-detect Chinese/Janapese/Korean Languages in the content. (.Summary and .WordCount can work properly in CJKLanguage)
+ hasCJKLanguage false
# verbose output
verbose: false
# verbose logging