From 7845f5dfe73b60e725182bc83fb7800d921e100b Mon Sep 17 00:00:00 2001 From: QIN2DIM <62018067+QIN2DIM@users.noreply.github.com> Date: Sat, 25 Sep 2021 02:22:58 +0800 Subject: [PATCH] feat(config): add `hasCJKLanguage` parameter (#360) --- exampleSite/config.yaml | 4 ++++ 1 file changed, 4 insertions(+) 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/