Skip to content

Commit efae18d

Browse files
committed
add i18n support and website details
1 parent 59cba64 commit efae18d

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

config/_default/config.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Change baseurl before deploy
2-
baseurl = "https://demo.stack.jimmycai.com"
3-
languageCode = "en-us"
4-
title = "Hugo Theme Stack Starter"
2+
baseurl = "https://blog.codeglimpse.top"
3+
languageCode = "zh-cn"
4+
title = "Personal Blogs for CodeGlimpse"
55

66
# Theme i18n support
77
# Available values: en, fr, id, ja, ko, pt-br, zh-cn, zh-tw, es, de, nl, it, th, el, uk, ar
8-
defaultContentLanguage = "en"
8+
defaultContentLanguage = "zh-cn"
99

1010
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
1111
# This will make .Summary and .WordCount behave correctly for CJK languages.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ languageName = "English"
44
languagedirection = "ltr"
55
title = "Example Site"
66
weight = 1
7+
8+
[zh-cn]
9+
languageName = "简体中文"
10+
languagedirection = "ltr"
11+
title = "示例网站"
12+
weight = 1

config/_default/params.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ published = "Jan 02, 2006"
1313
lastUpdated = "Jan 02, 2006 15:04 MST"
1414

1515
[sidebar]
16-
emoji = "🍥"
17-
subtitle = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
16+
emoji = "😎"
17+
subtitle = "My digital garden 🌱 - A blog and docs built with GitHub Pages. Thoughts welcome!"
1818

1919
[sidebar.avatar]
2020
enabled = true

0 commit comments

Comments
 (0)