From 24b9b4977bb8baf12c4c5958e363e4552ab501e5 Mon Sep 17 00:00:00 2001 From: JamesFlare1212 Date: Thu, 27 Apr 2023 14:07:09 +0800 Subject: [PATCH] muti-language-search --- config.toml | 2 +- themes/hugo-book/i18n/zh.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index 4f45585..15f9658 100644 --- a/config.toml +++ b/config.toml @@ -3,7 +3,7 @@ title = 'Academic Resources' theme = "hugo-book" defaultContentLanguage = "en" -languageCode = ["zh","en"] +languageCode = "zh" hasCJKLanguage = true # (Optional) Set Google Analytics if you use it to track your website. diff --git a/themes/hugo-book/i18n/zh.yaml b/themes/hugo-book/i18n/zh.yaml index 6f326d1..9e51cd9 100644 --- a/themes/hugo-book/i18n/zh.yaml +++ b/themes/hugo-book/i18n/zh.yaml @@ -17,4 +17,4 @@ tokenize: function(str) { return str.replace(/[\x00-\x7F]/g, '').split(''); } - } + } \ No newline at end of file