about summary refs log tree commit diff stats
path: root/config.toml
diff options
context:
space:
mode:
authorAlan Pearce2024-02-20 20:02:36 +0000
committerAlan Pearce2024-02-20 20:02:36 +0000
commit333e97f135264c3c220063b2b64bf4dc0b508f34 (patch)
treefda555ec02ad606d42d089b01107cbfead01f68d /config.toml
parent5a936b5c413b541c5523da6b4ebdc46f996f7360 (diff)
parentfa345b1d1e11cc66ed92605382887fd4367ef97a (diff)
downloadzola-bearblog-333e97f135264c3c220063b2b64bf4dc0b508f34.tar.lz
zola-bearblog-333e97f135264c3c220063b2b64bf4dc0b508f34.tar.zst
zola-bearblog-333e97f135264c3c220063b2b64bf4dc0b508f34.zip
Merge pull request 'Basic multilingual site' (#10) from multilingual into main
Reviewed-on: https://codeberg.org/alanpearce/zola-bearblog/pulls/10
Diffstat (limited to 'config.toml')
-rw-r--r--config.toml33
1 files changed, 33 insertions, 0 deletions
diff --git a/config.toml b/config.toml
index bd675af..92637f3 100644
--- a/config.toml
+++ b/config.toml
@@ -13,6 +13,29 @@ taxonomies = [
   {name = "tags", feed = true},
 ]
 
+default_language = "en"
+
+[translations]
+no_posts = "No posts yet"
+remove_filter = "Remove filter"
+filtering_for = "Filtering for"
+made_with = "Made with"
+
+[languages.de]
+title = "Zola ʕ•ᴥ•ʔ Bear Blog"
+description = "Ein Zola-theme basiert auf Bear Blog."
+
+taxonomies = [
+  {name = "categories", feed = true},
+  {name = "tags", feed = true},
+]
+
+[languages.de.translations]
+no_posts = "Keine Einträge"
+remove_filter = "Filter entfernen"
+filtering_for = "Filtern nach"
+made_with = "Erstellt mit"
+
 [markdown]
 # Whether to do syntax highlighting
 # Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
@@ -21,19 +44,29 @@ highlight_code = true
 [extra]
 date_format="%d %b, %Y"
 webserver_sends_csp_headers=true
+language_switcher=true
+
+translations = [
+  { code="en", name="English" },
+  { code="de", name="Deutsch" },
+]
 
 [[extra.main_menu]]
 name = "Home"
+name_de = "Startseite"
 url = "/"
 
 [[extra.main_menu]]
 name = "Bear"
+name_de = "Bear"
 url = "@/bear.md"
 
 [[extra.main_menu]]
 name = "Zola"
+name_de = "Zola"
 url = "@/zola.md"
 
 [[extra.main_menu]]
 name = "Blog"
+name_de = "Blog"
 url = "@/blog/_index.md"