From be63d6c4f8545a878f7afb373fd4f4c5f1b4eafd Mon Sep 17 00:00:00 2001 From: Seongjun Jang <41983244+junnei@users.noreply.github.com> Date: Wed, 28 Feb 2024 19:49:34 +0900 Subject: [PATCH] Update translation --- exampleSite/hugo.toml | 4 +++- layouts/partials/components/breadcrumb.html | 4 ++-- layouts/partials/page-header.html | 2 +- layouts/partials/widgets/tags.html | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 65a856b..304598c 100755 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -15,7 +15,9 @@ summaryLength = 10 # see https://gohugo.io/content-management/excerpts/ disableLanguages = [ ] # example: ["fr"] for disable french language. see https://gohugo.io/content-management/multilingual/ hasCJKLanguage = false # If hasCJKLanguage true, auto-detect Chinese/Japanese/Korean Languages in the content. see: https://gohugo.io/getting-started/configuration/#hascjklanguage - +# default language +defaultContentLanguage = 'en' +defaultContentLanguageInSubdir = false ########################### Services ############################# [services] diff --git a/layouts/partials/components/breadcrumb.html b/layouts/partials/components/breadcrumb.html index 53f302e..b21939c 100644 --- a/layouts/partials/components/breadcrumb.html +++ b/layouts/partials/components/breadcrumb.html @@ -16,7 +16,7 @@ - {{ .Title }} + {{ i18n (printf "%s" (lower .Title)) | default .Title }} / @@ -24,7 +24,7 @@ {{ end }}