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 1/2] 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/ From 57bfea833850e0565cf81d9a26c52359427151a2 Mon Sep 17 00:00:00 2001 From: zhixuan <59254886+zhixuan2333@users.noreply.github.com> Date: Sat, 25 Sep 2021 03:32:53 +0900 Subject: [PATCH 2/2] fix(shortcodes): mixed content error with bilibili and tencent video (#365) --- exampleSite/content/post/rich-content/index.md | 4 ++++ layouts/shortcodes/bilibili.html | 2 +- layouts/shortcodes/tencent.html | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/exampleSite/content/post/rich-content/index.md b/exampleSite/content/post/rich-content/index.md index 407c539..af8a390 100644 --- a/exampleSite/content/post/rich-content/index.md +++ b/exampleSite/content/post/rich-content/index.md @@ -32,3 +32,7 @@ Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-manageme ## Vimeo Simple Shortcode {{< vimeo_simple 48912912 >}} + +## bilibilibi Shortcode + +{{< bilibili av498363026 >}} diff --git a/layouts/shortcodes/bilibili.html b/layouts/shortcodes/bilibili.html index 602406c..cb72e43 100644 --- a/layouts/shortcodes/bilibili.html +++ b/layouts/shortcodes/bilibili.html @@ -13,7 +13,7 @@ {{ end }}
-