From 17780f166caee8877a8262cbb8b4c7893a0bdfd2 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 9 Jul 2021 14:13:19 +0200 Subject: [PATCH] Add german language. --- config.toml | 50 +++++++++++++++++++ ...Meta: This blog is multi-language now.adoc | 27 ++++++++++ ...a: This blog is multi-language now.de.adoc | 30 +++++++++++ 3 files changed, 107 insertions(+) create mode 100644 content/posts/Meta: This blog is multi-language now.adoc create mode 100644 content/posts/Meta: This blog is multi-language now.de.adoc diff --git a/config.toml b/config.toml index b00b550..e1bb25f 100644 --- a/config.toml +++ b/config.toml @@ -14,6 +14,9 @@ PaginatePath = "page" enableGitInfo = true +defaultContentLanguage = "en" +defaultContentLanguageInSubdir = false + [params] subtitle = "A pile of thoughts." favicon = "favicon.png" @@ -59,6 +62,12 @@ enableGitInfo = true url = "/index.xml" weight = 3 + [[menu.main]] + identifier = "language" + name = "deutsch" + url = "/de/" + weight = 4 + [[menu.footer]] name = "Contact" url = "https://tastytea.de/" @@ -74,3 +83,44 @@ enableGitInfo = true startLevel = 2 endLevel = 4 ordered = false + +[languages] + [languages.en] + weight = 1 + [languages.de] + weight = 1 + + [languages.de.menu] + [[languages.de.menu.main]] + identifier = "post" + name = "Posts" + url = "/de/posts/" + weight = 1 + + [[languages.de.menu.main]] + identifier = "tags" + name = "Tags" + url = "/de/tags/" + weight = 2 + + [[languages.de.menu.main]] + identifier = "rss" + name = "RSS" + url = "/de/index.xml" + weight = 3 + + [[languages.de.menu.main]] + identifier = "language" + name = "english" + url = "/" + weight = 4 + + [[languages.de.menu.footer]] + name = "Kontakt" + url = "https://tastytea.de/" + weight = 1 + + [[languages.de.menu.footer]] + name = "Quellcode" + url = "https://schlomp.space/tastytea/blog" + weight = 2 diff --git a/content/posts/Meta: This blog is multi-language now.adoc b/content/posts/Meta: This blog is multi-language now.adoc new file mode 100644 index 0000000..62723fb --- /dev/null +++ b/content/posts/Meta: This blog is multi-language now.adoc @@ -0,0 +1,27 @@ +--- +title: "Meta: This blog is multi-language now" +slug: "Meta: This blog is multi-language now" +description: null +date: 2021-07-09T12:21:45+02:00 +type: posts +draft: true +tags: +- Meta +toc: false +--- + +:source-highlighter: pygments +:idprefix: +:experimental: true +:toc: +:toclevels: 2 + +I will begin publishing posts in German on this blog. The +link:/index.xml[default RSS feed] will contain only English posts. The +link:/de/index.xml[German RSS feed] will contain only German +posts. So if you want to want to get posts in both languages, you will need to +subscribe to both. + +I am not sure yet if I will translate new posts to both languages. Probably some +posts will be only available in English while others will be only available in +German. 🤷 diff --git a/content/posts/Meta: This blog is multi-language now.de.adoc b/content/posts/Meta: This blog is multi-language now.de.adoc new file mode 100644 index 0000000..20ed3b2 --- /dev/null +++ b/content/posts/Meta: This blog is multi-language now.de.adoc @@ -0,0 +1,30 @@ +--- +title: "Meta: Dieser blog ist jetzt mehrsprachig" +slug: "Meta: Dieser blog ist jetzt mehrsprachig" +description: null +date: 2021-07-09T12:21:45+02:00 +type: posts +draft: true +tags: +- Meta +toc: false +--- + +:source-highlighter: pygments +:idprefix: +:experimental: true +:toc: +:toclevels: 2 + +Ich werde fortan auch deutsche texte auf diesem blog veröffentlichen. Der +link:/index.xml[standard RSS-feed] wird nur englische posts enthalten. Der +link:/de/index.xml[deutsche RSS-feed] wird nur deutsche posts enthalten. Wenn du +posts in beiden sprachen lesen willst, musst du beide feeds abonnieren. + +Ich weiß noch nicht, ob ich neue posts in beide sprachen übersetzen +werde. Wahrscheinlich werden einige posts nur in englisch und andere nur in +deutsch verfügbar sein. 🤷 + +// Local Variables: +// ispell-local-dictionary: "de_DE" +// End: