From 51b9a0ef82daf0deb955a5d17f3d894c6b72274f Mon Sep 17 00:00:00 2001 From: Arthur Le Meur Date: Wed, 18 Dec 2024 14:44:17 +0100 Subject: [PATCH] detect language from query params --- config.toml | 7 ++++--- layouts/partials/head.html | 20 +++++++++++++++++++- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/config.toml b/config.toml index 5a11dd85a..af8303d8a 100644 --- a/config.toml +++ b/config.toml @@ -1,9 +1,9 @@ baseURL = "https://thorium.edrlab.org/" title = "Thorium Reader" # Language settings -contentDir = "content/en" -defaultContentLanguage = "en" -defaultContentLanguageInSubdir = true +# contentDir = "content/en" +# defaultContentLanguage = "en" +# defaultContentLanguageInSubdir = true # Useful when translating. enableMissingTranslationPlaceholders = true @@ -62,6 +62,7 @@ blog = "/:section/:year/:month/:day/:slug/" title = "Thorium Reader" description = "The Reading Experience" languageName ="English" +contentDir = "content/en" # Weight used for sorting. weight = 1 [languages.fr] diff --git a/layouts/partials/head.html b/layouts/partials/head.html index da765c12c..f4939eabd 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -71,4 +71,22 @@ g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); - \ No newline at end of file + + + \ No newline at end of file