Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQIN2DIM <62018067+QIN2DIM@users.noreply.github.com>2021-09-24 21:22:58 +0300
committerGitHub <noreply@github.com>2021-09-24 21:22:58 +0300
commit7845f5dfe73b60e725182bc83fb7800d921e100b (patch)
tree02f6bc5dd673935b76c59791e55e8956b2b0907a /exampleSite
parent66bd8a299798b53c78fa4b6b65c5c7256485a029 (diff)
feat(config): add `hasCJKLanguage` parameter (#360)
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index 8139fa4..7b89960 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -14,6 +14,10 @@ googleAnalytics:
# Available values: en, fr, id, ja, ko, pt-br, zh-cn, es, de, nl, it
DefaultContentLanguage: en
+# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
+# This will make .Summary and .WordCount behave correctly for CJK languages.
+hasCJKLanguage: false
+
permalinks:
post: /p/:slug/
page: /:slug/