Skip to content

Commit

Permalink
Merge pull request #18 from Lemon73-Computing/improve-i18n-support
Browse files Browse the repository at this point in the history
Improve: i18n support
  • Loading branch information
Lemon73-Computing authored Jun 29, 2024
2 parents 03f8af6 + 49ad729 commit 327f9cd
Show file tree
Hide file tree
Showing 13 changed files with 85 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions content/_index.ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
menu:
main:
name: Home
weight: 1
params:
icon: home
---
File renamed without changes.
10 changes: 10 additions & 0 deletions content/categories/kde/_index.ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: KDE
description: KDE 関連の資料
image: konqi.png

# Badge style
style:
background: "#1D99F3"
color: "#fff"
---
9 changes: 9 additions & 0 deletions content/categories/rules/_index.en.md
Original file line number Diff line number Diff line change
@@ -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"
---
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions content/page/archives/index.ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "Archives"
date: 2024-02-20
layout: "archives"
slug: "archives"
menu:
main:
weight: 2
params:
icon: archives
---
File renamed without changes.
33 changes: 33 additions & 0 deletions content/page/links/index.ja.md
Original file line number Diff line number Diff line change
@@ -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
---

この機能を利用するには、`links` セクションをフロントマターに追加してください。

このページのフロントマター:

```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` フィールドは内部と外部の画像両方に対応しています。
File renamed without changes.
13 changes: 13 additions & 0 deletions content/page/search/index.ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "Search"
slug: "search"
layout: "search"
outputs:
- html
- json
menu:
main:
weight: 3
params:
icon: search
---

0 comments on commit 327f9cd

Please sign in to comment.