Skip to content

Commit

Permalink
Docs: Added hasCJKLanguage global config flag and isCJKLanguage F…
Browse files Browse the repository at this point in the history
…rontMatter

See gohugoio#1399
  • Loading branch information
coderzh authored and bep committed Oct 9, 2015
1 parent 7b4e476 commit ccd83c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/content/content/front-matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/content/overview/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ccd83c3

Please sign in to comment.