diff options
author | neodarz <neodarz@neodarz.net> | 2019-11-15 07:54:41 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-11-15 07:54:41 +0100 |
commit | 5c1e0dda4e2d3d04eaa70525d5d3f3020d542b64 (patch) | |
tree | 54cabb9887962ac2d2e7987fbea54588ad4e8d52 /config | |
parent | 4d2887faa5301db3f9dc42f0247b12eb274e33b2 (diff) | |
download | my_new_personal_website-5c1e0dda4e2d3d04eaa70525d5d3f3020d542b64.tar.xz my_new_personal_website-5c1e0dda4e2d3d04eaa70525d5d3f3020d542b64.zip |
Add multi language support for index
Diffstat (limited to '')
-rw-r--r-- | config/config.py | 2 | ||||
-rw-r--r-- | config/generator.toml | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/config/config.py b/config/config.py index 144d0fbf..1d247166 100644 --- a/config/config.py +++ b/config/config.py @@ -28,6 +28,8 @@ RSS_ICON_HEIGHT = config["blog"]["RSS_ICON_HEIGHT"] #generator configurations GENERATOR_NAME = config["generator"]["GENERATOR_NAME"] GENERATOR_HOME_PAGE = config["generator"]["GENERATOR_HOME_PAGE"] +DEFAULTLANG = config["generator"]["DEFAULTLANG"] +LANGUAGES = config["generator"]["LANGUAGES"] SOURCEDIR = os.path.join(ROOTDIR, config["generator"]["SOURCEDIR"]) POSTSDIR = os.path.join(SOURCEDIR, config["generator"]["POSTSDIR"]) diff --git a/config/generator.toml b/config/generator.toml index 2ae0e83f..4b15d0a4 100644 --- a/config/generator.toml +++ b/config/generator.toml @@ -3,6 +3,8 @@ [generator] GENERATOR_NAME = "pyblog" GENERATOR_HOME_PAGE = "https://git.neodarz.net/neodarz/website/my_new_personal_website.git/about/" + DEFAULTLANG = "en" + LANGUAGES = ["en", "fr"] SOURCEDIR = "source" POSTSDIR = "blog" |