diff --git a/blog/config.toml b/blog/config.toml index e7f374f9..1f86d6e1 100644 --- a/blog/config.toml +++ b/blog/config.toml @@ -5,6 +5,10 @@ highlight_code = true highlight_theme = "visual-studio-dark" generate_rss = true +languages = [ + { code = "zh" }, # Chinese +] + [extra] subtitle = "Philipp Oppermann's blog" author = { name = "Philipp Oppermann" } diff --git a/blog/content/second-edition/posts/_index.zh.md b/blog/content/second-edition/posts/_index.zh.md new file mode 100644 index 00000000..d9da15d1 --- /dev/null +++ b/blog/content/second-edition/posts/_index.zh.md @@ -0,0 +1,7 @@ ++++ +title = "Posts" +sort_by = "weight" +insert_anchor_links = "left" +render = false +page_template = "second-edition/page.html" ++++ diff --git a/blog/templates/second-edition/page.html b/blog/templates/second-edition/page.html index 0a39a024..f9b4e685 100644 --- a/blog/templates/second-edition/page.html +++ b/blog/templates/second-edition/page.html @@ -35,6 +35,13 @@ {% endif %} + {% if page.lang != "en" %} +