[±] Supported i18n (en, zh-cn)
This commit is contained in:
parent
f6861272c3
commit
6dddd72c34
@ -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:
|
||||||
|
14
config/_default/languages.en.yaml
Normal file
14
config/_default/languages.en.yaml
Normal 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
|
14
config/_default/languages.zh-cn.yaml
Normal file
14
config/_default/languages.zh-cn.yaml
Normal 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 协议授权
|
@ -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
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
menu:
|
|
||||||
main:
|
|
||||||
name: Home
|
|
||||||
weight: 1
|
|
||||||
params:
|
|
||||||
icon: home
|
|
||||||
---
|
|
8
content/en/_index.md
Normal file
8
content/en/_index.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
name: Home
|
||||||
|
weight: 1
|
||||||
|
params:
|
||||||
|
icon: home
|
||||||
|
---
|
12
content/en/page/about/about.md
Normal file
12
content/en/page/about/about.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
title: About
|
||||||
|
slug: about
|
||||||
|
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
weight: 5
|
||||||
|
params:
|
||||||
|
icon: user
|
||||||
|
---
|
||||||
|
|
||||||
|
## 🏗️ Just a minute..
|
11
content/en/page/archives/archives.md
Normal file
11
content/en/page/archives/archives.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
title: Archives
|
||||||
|
layout: archives
|
||||||
|
slug: archives
|
||||||
|
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
weight: 2
|
||||||
|
params:
|
||||||
|
icon: archives
|
||||||
|
---
|
26
content/en/page/links/links.md
Normal file
26
content/en/page/links/links.md
Normal 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
|
||||||
|
---
|
14
content/en/page/search/search.md
Normal file
14
content/en/page/search/search.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
title: Search
|
||||||
|
slug: search
|
||||||
|
layout: search
|
||||||
|
outputs:
|
||||||
|
- html
|
||||||
|
- json
|
||||||
|
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
weight: 3
|
||||||
|
params:
|
||||||
|
icon: search
|
||||||
|
---
|
3
content/en/post/hello-world.md
Normal file
3
content/en/post/hello-world.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
title: Once again, "Hello World!"
|
||||||
|
---
|
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
title: "About"
|
|
||||||
slug: "about"
|
|
||||||
menu:
|
|
||||||
main:
|
|
||||||
weight: 5
|
|
||||||
params:
|
|
||||||
icon: user
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🏗️ 页面施工中... 很快就好...
|
|
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Archives"
|
|
||||||
layout: "archives"
|
|
||||||
slug: "archives"
|
|
||||||
menu:
|
|
||||||
main:
|
|
||||||
weight: 2
|
|
||||||
params:
|
|
||||||
icon: archives
|
|
||||||
---
|
|
@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Search"
|
|
||||||
slug: "search"
|
|
||||||
layout: "search"
|
|
||||||
outputs:
|
|
||||||
- html
|
|
||||||
- json
|
|
||||||
menu:
|
|
||||||
main:
|
|
||||||
weight: 3
|
|
||||||
params:
|
|
||||||
icon: search
|
|
||||||
---
|
|
@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
title: (又一次的)世界,你好!
|
|
||||||
---
|
|
8
content/zh-cn/_index.md
Normal file
8
content/zh-cn/_index.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
name: 首页
|
||||||
|
weight: 1
|
||||||
|
params:
|
||||||
|
icon: home
|
||||||
|
---
|
12
content/zh-cn/page/about/about.md
Normal file
12
content/zh-cn/page/about/about.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
title: "关于我"
|
||||||
|
slug: "关于我"
|
||||||
|
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
weight: 5
|
||||||
|
params:
|
||||||
|
icon: user
|
||||||
|
---
|
||||||
|
|
||||||
|
## 🏗️ 很快就好...
|
11
content/zh-cn/page/archives/archives.md
Normal file
11
content/zh-cn/page/archives/archives.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
title: 存档
|
||||||
|
layout: archives
|
||||||
|
slug: 存档
|
||||||
|
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
weight: 2
|
||||||
|
params:
|
||||||
|
icon: archives
|
||||||
|
---
|
@ -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
|
|
||||||
---
|
---
|
14
content/zh-cn/page/search/search.md
Normal file
14
content/zh-cn/page/search/search.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
title: 搜索
|
||||||
|
slug: 搜索
|
||||||
|
layout: search
|
||||||
|
outputs:
|
||||||
|
- html
|
||||||
|
- json
|
||||||
|
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
weight: 3
|
||||||
|
params:
|
||||||
|
icon: search
|
||||||
|
---
|
3
content/zh-cn/post/hello-world.md
Normal file
3
content/zh-cn/post/hello-world.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
title: 再一次,“你好,世界!”
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user