diff --git a/config.toml b/config.toml
index cc42f1a..476e8f0 100644
--- a/config.toml
+++ b/config.toml
@@ -9,11 +9,33 @@ taxonomies = [
{name = "tags", feed = true},
]
+[translations]
+tags = "Tags"
+categories = "Categories"
+url = "$BASE_URL"
+name = "eng"
+lang_kor = "Korean"
+
+[languages.kor]
+generate_feed = true
+
+taxonomies = [
+ {name = "categories", feed = true},
+ {name = "tags", feed = true},
+]
+
+[languages.kor.translations]
+tags = "태그"
+categories = "범주"
+url = "$BASE_URL/kor"
+name = "한국어"
+trans_key = "lang_kor"
+
[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_title = "My blog"
diff --git a/content/_index.kor.md b/content/_index.kor.md
new file mode 100644
index 0000000..5ae57b8
--- /dev/null
+++ b/content/_index.kor.md
@@ -0,0 +1,3 @@
++++
+paginate_by = 5
++++
diff --git a/content/some-article.kor.md b/content/some-article.kor.md
new file mode 100644
index 0000000..ed89d12
--- /dev/null
+++ b/content/some-article.kor.md
@@ -0,0 +1,10 @@
++++
+title = "구텐베르크는 무엇인가"
+date = 2017-09-24
+
+[taxonomies]
+categories = ["세계 안녕"]
+tags = ["러스트"]
++++
+
+글이 여기서 나온다
diff --git a/templates/index.html b/templates/index.html
index 5b1b267..e190cfd 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -34,16 +34,38 @@
+ {% set lang_base_url = get_url(path="", lang=lang) %}
{% block content %}
{% block header %}
- {% if config.extra.after_dark_menu %}
+ {% if config.extra.after_dark_menu or config.languages %}
diff --git a/templates/page.html b/templates/page.html
index afb949c..545f9d4 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -26,13 +26,13 @@ {{ page.title }}
{% endif %}
{% if page.taxonomies.categories %}
{% set category = page.taxonomies.categories[0] %}
- in {{ category }}
+ in {{ category }}
{% endif %}
{% if page.taxonomies.tags %}
{% if page.taxonomies.categories %}and{% endif %}
tagged
{% for tag in page.taxonomies.tags %}
- {{ tag }}
+ {{ tag }}
{% if page.taxonomies.tags | length > 1 %}
{% if loop.index != page.taxonomies.tags | length %}
{% if loop.index == page.taxonomies.tags | length - 1 %}
diff --git a/templates/tags/list.html b/templates/tags/list.html
index f3f7840..c25f896 100644
--- a/templates/tags/list.html
+++ b/templates/tags/list.html
@@ -5,7 +5,7 @@
{{ super() }}
{% endblock header %}
- Tags
+ {% if config.languages | length > 0 %}{{ trans(key="tags", lang=lang) }}{% else %}Tags{% endif %}
{% if terms %}