From 88ed7ae7b21c19b154fa10be0b75f8c2a1694007 Mon Sep 17 00:00:00 2001 From: southerntofu Date: Mon, 30 Mar 2020 01:50:24 +0200 Subject: [PATCH] Simpler i18n --- config.toml | 2 ++ templates/index.html | 2 +- templates/page.html | 2 +- templates/section.html | 8 ++++---- templates/widgets.html | 27 +++++++++++++++------------ 5 files changed, 23 insertions(+), 18 deletions(-) diff --git a/config.toml b/config.toml index 89bb1cd..69192d0 100644 --- a/config.toml +++ b/config.toml @@ -11,6 +11,8 @@ highlight_code = false # Whether to build a search index to be used later on by a JavaScript library build_search_index = false +default_language = "en" + languages = [ {code = "fr", rss = true} ] diff --git a/templates/index.html b/templates/index.html index 91c08eb..7bcbed7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -26,7 +26,7 @@