diff --git a/config.py.example b/config.py.example index 9f5b8e4..ad05373 100644 --- a/config.py.example +++ b/config.py.example @@ -1,5 +1,8 @@ # This is the configuration file for geminer. -# Is is not intended to be executed. +# It is not intended to be executed. + +# locale (for templates, for example dates rendering) +locale = "fr_FR.utf8" # path to directory containing markdonw files to convert md_dir = "~/repo/htg-content/content/posts" diff --git a/geminer.py b/geminer.py index f5da22f..be72930 100755 --- a/geminer.py +++ b/geminer.py @@ -4,9 +4,13 @@ from md2gemini import md2gemini import frontmatter from jinja2 import Template import os +import locale import config +# locale (for templates, for example dates rendering) +locale = "fr_FR.utf8" + md_path = os.path.expanduser(config.md_dir) gmi_path = os.path.expanduser(config.gmi_dir) tpl_path = os.path.expanduser(config.tpl_dir)