From 802a1f8616037b6f5e36023f7132387ab20dcce6 Mon Sep 17 00:00:00 2001 From: Lemon73-Computing Date: Sun, 30 Jun 2024 02:16:34 +0900 Subject: [PATCH 1/4] change: pages directory --- config/_default/config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/_default/config.toml b/config/_default/config.toml index 8cee5be..3d77979 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -6,6 +6,7 @@ title = "Lemon73 Blog" # Theme i18n support # Available values: en, fr, id, ja, ko, pt-br, zh-cn, zh-tw, es, de, nl, it, th, el, uk, ar defaultContentLanguage = "ja" +defaultContentLanguageInSubdir = true # Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko] # This will make .Summary and .WordCount behave correctly for CJK languages. From 78d846ef43d67f9c706602cfc879c19e02f148db Mon Sep 17 00:00:00 2001 From: Lemon73-Computing Date: Sun, 30 Jun 2024 02:18:01 +0900 Subject: [PATCH 2/4] split: english files from japanese them --- content/{_index.md => _index.en.md} | 0 content/_index.ja.md | 8 +++++ .../page/archives/{index.md => index.en.md} | 0 content/page/archives/index.ja.md | 11 +++++++ content/page/links/{index.md => index.en.md} | 0 content/page/links/index.ja.md | 33 +++++++++++++++++++ content/page/search/{index.md => index.en.md} | 0 content/page/search/index.ja.md | 13 ++++++++ 8 files changed, 65 insertions(+) rename content/{_index.md => _index.en.md} (100%) create mode 100644 content/_index.ja.md rename content/page/archives/{index.md => index.en.md} (100%) create mode 100644 content/page/archives/index.ja.md rename content/page/links/{index.md => index.en.md} (100%) create mode 100644 content/page/links/index.ja.md rename content/page/search/{index.md => index.en.md} (100%) create mode 100644 content/page/search/index.ja.md diff --git a/content/_index.md b/content/_index.en.md similarity index 100% rename from content/_index.md rename to content/_index.en.md diff --git a/content/_index.ja.md b/content/_index.ja.md new file mode 100644 index 0000000..636abae --- /dev/null +++ b/content/_index.ja.md @@ -0,0 +1,8 @@ +--- +menu: + main: + name: Home + weight: 1 + params: + icon: home +--- \ No newline at end of file diff --git a/content/page/archives/index.md b/content/page/archives/index.en.md similarity index 100% rename from content/page/archives/index.md rename to content/page/archives/index.en.md diff --git a/content/page/archives/index.ja.md b/content/page/archives/index.ja.md new file mode 100644 index 0000000..8c3fba1 --- /dev/null +++ b/content/page/archives/index.ja.md @@ -0,0 +1,11 @@ +--- +title: "Archives" +date: 2024-02-20 +layout: "archives" +slug: "archives" +menu: + main: + weight: 2 + params: + icon: archives +--- \ No newline at end of file diff --git a/content/page/links/index.md b/content/page/links/index.en.md similarity index 100% rename from content/page/links/index.md rename to content/page/links/index.en.md diff --git a/content/page/links/index.ja.md b/content/page/links/index.ja.md new file mode 100644 index 0000000..ef8bb3e --- /dev/null +++ b/content/page/links/index.ja.md @@ -0,0 +1,33 @@ +--- +title: Links +links: + - title: GitHub + description: GitHub is the world's largest software development platform. + website: https://github.com + image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png +menu: + main: + weight: 4 + params: + icon: link + +comments: false +--- + +To use this feature, add `links` section to frontmatter. + +This page's frontmatter: + +```yaml +links: + - title: GitHub + description: GitHub is the world's largest software development platform. + website: https://github.com + image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png + - title: TypeScript + description: TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. + website: https://www.typescriptlang.org + image: ts-logo-128.jpg +``` + +`image` field accepts both local and external images. \ No newline at end of file diff --git a/content/page/search/index.md b/content/page/search/index.en.md similarity index 100% rename from content/page/search/index.md rename to content/page/search/index.en.md diff --git a/content/page/search/index.ja.md b/content/page/search/index.ja.md new file mode 100644 index 0000000..7507b68 --- /dev/null +++ b/content/page/search/index.ja.md @@ -0,0 +1,13 @@ +--- +title: "Search" +slug: "search" +layout: "search" +outputs: + - html + - json +menu: + main: + weight: 3 + params: + icon: search +--- \ No newline at end of file From 6b0e70aed2649b1debf7d407faed1e87d4503a4c Mon Sep 17 00:00:00 2001 From: Lemon73-Computing Date: Sun, 30 Jun 2024 02:20:56 +0900 Subject: [PATCH 3/4] translate: links page into japanese --- content/page/links/index.ja.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/page/links/index.ja.md b/content/page/links/index.ja.md index ef8bb3e..bccc0f0 100644 --- a/content/page/links/index.ja.md +++ b/content/page/links/index.ja.md @@ -14,9 +14,9 @@ menu: comments: false --- -To use this feature, add `links` section to frontmatter. +この機能を利用するには、`links` セクションをフロントマターに追加してください。 -This page's frontmatter: +このページのフロントマター: ```yaml links: @@ -30,4 +30,4 @@ links: image: ts-logo-128.jpg ``` -`image` field accepts both local and external images. \ No newline at end of file +`image` フィールドは内部と外部の画像両方に対応しています。 \ No newline at end of file From 49ad72993f599b4b8bc536a3ab019c171c8cc0a1 Mon Sep 17 00:00:00 2001 From: Lemon73-Computing Date: Sun, 30 Jun 2024 02:24:41 +0900 Subject: [PATCH 4/4] split: caregories into english --- content/categories/kde/{_index.md => _index.en.md} | 0 content/categories/kde/_index.ja.md | 10 ++++++++++ content/categories/rules/_index.en.md | 9 +++++++++ content/categories/rules/{_index.md => _index.ja.md} | 0 4 files changed, 19 insertions(+) rename content/categories/kde/{_index.md => _index.en.md} (100%) create mode 100644 content/categories/kde/_index.ja.md create mode 100644 content/categories/rules/_index.en.md rename content/categories/rules/{_index.md => _index.ja.md} (100%) diff --git a/content/categories/kde/_index.md b/content/categories/kde/_index.en.md similarity index 100% rename from content/categories/kde/_index.md rename to content/categories/kde/_index.en.md diff --git a/content/categories/kde/_index.ja.md b/content/categories/kde/_index.ja.md new file mode 100644 index 0000000..52daf4b --- /dev/null +++ b/content/categories/kde/_index.ja.md @@ -0,0 +1,10 @@ +--- +title: KDE +description: KDE 関連の資料 +image: konqi.png + +# Badge style +style: + background: "#1D99F3" + color: "#fff" +--- \ No newline at end of file diff --git a/content/categories/rules/_index.en.md b/content/categories/rules/_index.en.md new file mode 100644 index 0000000..ce53c02 --- /dev/null +++ b/content/categories/rules/_index.en.md @@ -0,0 +1,9 @@ +--- +title: Lemon rules +description: The docs about the rules in Lemon's Resting Area (my own group). + +# Badge style +style: + background: "#ffa" + color: "#fff" +--- \ No newline at end of file diff --git a/content/categories/rules/_index.md b/content/categories/rules/_index.ja.md similarity index 100% rename from content/categories/rules/_index.md rename to content/categories/rules/_index.ja.md