Skip to content

Commit

Permalink
Add alternate language example
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxter184 committed Jul 8, 2022
1 parent ae9a5fc commit 465faf7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
26 changes: 23 additions & 3 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,31 @@ taxonomies = [
{name = "tags", feed = true},
]

[translations]
tags = "Tags"
categories = "Categories"

[languages.kor]
generate_feed = true

taxonomies = [
{name = "categories", feed = true},
{name = "tags", feed = true},
]

[languages.kor.translations]
tags = "태그"
categories = "범주"

[extra]
author = "Vincent"
after_dark_menu = [
{url = "$BASE_URL", name = "Home"},
{url = "$BASE_URL/categories", name = "Categories"},
{url = "$BASE_URL/tags", name = "Tags"},
{url = "$LANG_BASE_URL", name = "Home"},
{url = "$LANG_BASE_URL/categories", trans_key = "categories"},
{url = "$LANG_BASE_URL/tags", trans_key = "tags"},
]
after_dark_langs = [
{url = "$BASE_URL", name = "eng"},
{url = "$BASE_URL/kor", name = "kor"},
]
after_dark_title = "My blog"
3 changes: 3 additions & 0 deletions content/_index.kor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
+++
paginate_by = 5
+++
10 changes: 10 additions & 0 deletions content/some-article.kor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
+++
title = "구텐베르크는 무엇인가"
date = 2017-09-24

[taxonomies]
categories = ["세계 안녕"]
tags = ["러스트"]
+++

korean text here

0 comments on commit 465faf7

Please sign in to comment.