[±] Supported i18n (en, zh-cn)

This commit is contained in:
Yanzheng Sun 2024-01-27 23:19:01 +08:00
parent f6861272c3
commit 6dddd72c34
Signed by: realSunyz
SSH Key Fingerprint: SHA256:5dk3slVnWtJYlwrnURrUYXoimuSx8Vi9pbs4n3XoGH0
21 changed files with 165 additions and 63 deletions

View File

@ -1,10 +1,8 @@
baseURL: https://sunyz.net/ baseURL: https://sunyz.net/
languageCode: zh-cn
title: Seven's Blog
theme: hugo-theme-stack theme: hugo-theme-stack
defaultContentLanguage: "zh-cn" defaultContentLanguage: "zh-cn"
hasCJKLanguage: true defaultContentLanguageInSubdir: true
services: services:
disqus: disqus:

View File

@ -0,0 +1,14 @@
languageCode: en
languageDirection: ltr
languageName: English
contentDir: content/en
hasCJKLanguage: false
title: Seven's Blog
params:
sidebar:
subtitle: The next time we may meet anywhere, but we are always as brilliant as a sea of stars.
article:
license:
default: Licensed under CC BY-NC-SA 4.0

View File

@ -0,0 +1,14 @@
languageCode: zh-cn
languageDirection: ltr
languageName: Chinese (Simplified)
contentDir: content/zh-cn
hasCJKLanguage: true
title: Seven 的日记本
params:
sidebar:
subtitle: 下一次相遇可能在任何地方,但我们始终灿烂如星海。
article:
license:
default: 使用 CC BY-NC-SA 4.0 协议授权

View File

@ -12,7 +12,6 @@ dateFormat:
sidebar: sidebar:
emoji: 🍁 emoji: 🍁
subtitle: 下一次相遇可能在任何地方,但我们始终灿烂如星海。
avatar: avatar:
enabled: true enabled: true
local: false local: false
@ -23,7 +22,6 @@ article:
readingTime: true readingTime: true
license: license:
enabled: true enabled: true
default: Licensed under CC BY-NC-SA 4.0
colorScheme: colorScheme:
toggle: true toggle: true

View File

@ -1,8 +0,0 @@
---
menu:
main:
name: Home
weight: 1
params:
icon: home
---

8
content/en/_index.md Normal file
View File

@ -0,0 +1,8 @@
---
menu:
main:
name: Home
weight: 1
params:
icon: home
---

View File

@ -0,0 +1,12 @@
---
title: About
slug: about
menu:
main:
weight: 5
params:
icon: user
---
## 🏗️ Just a minute..

View File

@ -0,0 +1,11 @@
---
title: Archives
layout: archives
slug: archives
menu:
main:
weight: 2
params:
icon: archives
---

View File

@ -0,0 +1,26 @@
---
title: Links
menu:
main:
weight: 4
params:
icon: link
links:
- title: 🍬 Clansty
description: An adorable and charming catgirl.
website: https://nyac.at
- title: 🐺 QYL27
description: Half a teenage girl, travelling around the world on Bitstream.
website: https://www.qy.al
- title: 🐱 JackieCat
description:
website: https://jackiecat.top
- title: 🎨 TaranakiNeko
description: A cat lying on the keyboard.
website: https://nekoq.top
- title: 👺 Winslow S.E.M.
description: A Tengu Youkai!
website: https://winsloweric.com
---

View File

@ -0,0 +1,14 @@
---
title: Search
slug: search
layout: search
outputs:
- html
- json
menu:
main:
weight: 3
params:
icon: search
---

View File

@ -0,0 +1,3 @@
---
title: Once again, "Hello World!"
---

View File

@ -1,11 +0,0 @@
---
title: "About"
slug: "about"
menu:
main:
weight: 5
params:
icon: user
---
## 🏗️ 页面施工中... 很快就好...

View File

@ -1,10 +0,0 @@
---
title: "Archives"
layout: "archives"
slug: "archives"
menu:
main:
weight: 2
params:
icon: archives
---

View File

@ -1,13 +0,0 @@
---
title: "Search"
slug: "search"
layout: "search"
outputs:
- html
- json
menu:
main:
weight: 3
params:
icon: search
---

View File

@ -1,3 +0,0 @@
---
title: (又一次的)世界,你好!
---

8
content/zh-cn/_index.md Normal file
View File

@ -0,0 +1,8 @@
---
menu:
main:
name: 首页
weight: 1
params:
icon: home
---

View File

@ -0,0 +1,12 @@
---
title: "关于我"
slug: "关于我"
menu:
main:
weight: 5
params:
icon: user
---
## 🏗️ 很快就好...

View File

@ -0,0 +1,11 @@
---
title: 存档
layout: archives
slug: 存档
menu:
main:
weight: 2
params:
icon: archives
---

View File

@ -1,25 +1,26 @@
--- ---
title: Links title: 友链
menu:
main:
weight: 4
params:
icon: link
links: links:
- title: 🍬 凌莞 - title: 🍬 凌莞
description: 一只可爱的猫姐姐 description: 一只可爱的猫姐姐
website: https://nyac.at website: https://nyac.at
- title: 🐺 秋雨落 - title: 🐺 秋雨落
description: 二分之一少女,乘着比特流环游世界~ description: 二分之一少女,乘着比特流环游世界
website: https://www.qy.al website: https://www.qy.al
- title: 🐱 JackieCat - title: 🐱 JackieCat
description: description:
website: https://jackiecat.top website: https://jackiecat.top
- title: 🎨 TaranakiNeko - title: 🎨 千畔
description: A cat lying on the keyboard. description: 一只躺在键盘上的猫猫
website: https://nekoq.top website: https://nekoq.top
- title: 💊 Winslow - title: 👺 温丝洛
description: 是天狗妖怪 description: 是天狗妖怪
website: https://winsloweric.com website: https://winsloweric.com
menu:
main:
weight: 1
params:
icon: link
--- ---

View File

@ -0,0 +1,14 @@
---
title: 搜索
slug: 搜索
layout: search
outputs:
- html
- json
menu:
main:
weight: 3
params:
icon: search
---

View File

@ -0,0 +1,3 @@
---
title: 再一次,“你好,世界!”
---