Skip to content

Commit

Permalink
Add Chinese version of blog
Browse files Browse the repository at this point in the history
  • Loading branch information
YiQi0318 committed Jun 18, 2024
1 parent 0d74aae commit 59383e7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
39 changes: 33 additions & 6 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,42 @@
baseURL = 'https://yiqi0318.github.io'
languageCode = 'en-gb'
# baseURL = 'https://yiqi0318.github.io'
# languageCode = 'en-gb'
# title = "Yi's Blog"
# theme = 'yinyang'

# defaultContentLanguage = "en"
# [languages.en]
# contentDir = "content/en"
# languageName = "English"
# # [languages.cn]
# # contentDir = "content/cn"
# # languageName = "Chinese"

# [params]
# headTitle = "Yi Qi"

# [[params.socials]]
# name = "GitHub"
# link = "https://github.com/yiqi0318"


baseURL = "https://yiqi0318.github.io/blog/"
languageCode = "en-gb"
title = "Yi's Blog"
theme = 'yinyang'
theme = "yinyang"

defaultContentLanguage = "en"
defaultContentLanguageInSubdir = true


[languages.en]
contentDir = "content/en"
languageName = "English"
# [languages.cn]
# contentDir = "content/cn"
# languageName = "Chinese"
weight = 1

[languages.cn]
contentDir = "content/cn"
languageName = "Chinese"
weight = 2

[params]
headTitle = "Yi Qi"
Expand Down
7 changes: 7 additions & 0 deletions content/cn/posts/测试.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: "测试"
date: 2024-06-18T15:08:42+01:00
draft: false
---

测试,ceshi,ceshi, 测试。

0 comments on commit 59383e7

Please sign in to comment.