Skip to content

Commit 9292bec

Browse files
committed
Add alternate language example
1 parent cbd8578 commit 9292bec

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

config.toml

+23-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,31 @@ taxonomies = [
99
{name = "tags", feed = true},
1010
]
1111

12+
[translations]
13+
tags = "Tags"
14+
categories = "Categories"
15+
16+
[languages.kor]
17+
generate_feed = true
18+
19+
taxonomies = [
20+
{name = "categories", feed = true},
21+
{name = "tags", feed = true},
22+
]
23+
24+
[languages.kor.translations]
25+
tags = "태그"
26+
categories = "범주"
27+
1228
[extra]
1329
author = "Vincent"
1430
after_dark_menu = [
15-
{url = "$BASE_URL", name = "Home"},
16-
{url = "$BASE_URL/categories", name = "Categories"},
17-
{url = "$BASE_URL/tags", name = "Tags"},
31+
{url = "$LANG_BASE_URL", name = "Home"},
32+
{url = "$LANG_BASE_URL/categories", trans_key = "categories"},
33+
{url = "$LANG_BASE_URL/tags", trans_key = "tags"},
34+
]
35+
after_dark_langs = [
36+
{url = "$BASE_URL", name = "eng"},
37+
{url = "$BASE_URL/kor", name = "kor"},
1838
]
1939
after_dark_title = "My blog"

content/_index.kor.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
+++
2+
paginate_by = 5
3+
+++

content/some-article.kor.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
+++
2+
title = "구텐베르크는 무엇인가"
3+
date = 2017-09-24
4+
5+
[taxonomies]
6+
categories = ["세계 안녕"]
7+
tags = ["러스트"]
8+
+++
9+
10+
korean text here

0 commit comments

Comments
 (0)