add locale setting

This commit is contained in:
Guy Godfroy 2020-12-03 11:35:13 +01:00
parent 1cd0939230
commit 377278b88f
2 changed files with 8 additions and 1 deletions

View File

@ -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"

View File

@ -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)