[conf] tout le bousin pour la trad

This commit is contained in:
max/sooulix 2024-08-15 02:20:17 +02:00
parent 5bcf39406f
commit ac13e4348f
1 changed files with 28 additions and 4 deletions

View File

@ -1,12 +1,13 @@
AUTHOR = 'maxime alves'
SITENAME = 'mfalves'
SITEURL = ""
SITEURL = "http://127.0.0.1:8000/"
PATH = "content"
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'fr'
DEFAULT_LOCALE = 'fr_FR.UTF-8'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
@ -35,13 +36,36 @@ DEFAULT_PAGINATION = 10
# RELATIVE_URLS = True
THEME = "./theme"
THEME_STATIC_PATHS = ['static']
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['readtime','search','neighbors','pelican-toc']
PLUGIN_PATHS = ['pelican-plugins', 'pelican-custom-plugins']
PLUGINS = ['readtime','neighbors'
,'pelican-toc'
, 'jsonresume'
, 'i18n_subsites'
]
PAGINATED_TEMPLATES = {'index':None,'tag':None,'category':None,'author':None,'archives':24}
# SEARCH_MODE = "output"
# SEARCH_HTML_SELECTOR = "main"
DIRECT_TEMPLATES = (('index','search','tags','categories','archives'))
STORK_INPUT_OPTIONS = {
'html_selector': 'main'
'html_selector': 'main',
}
DISPLAY_PAGES_ON_MENU = True
I18N_SUBSITES = {
'fr': {
'SITEURL': 'http://127.0.0.1:8000/fr/',
'LOCALE': 'fr_FR.UTF-8',
'THEME_STATIC_DIR': '../theme',
},
'en': {
'SITEURL': 'http://127.0.0.1:8000/en/',
'LOCALE': 'en_US.UTF-8',
'THEME_STATIC_DIR': '../theme',
}
}
I18N_TEMPLATES_LANG = ['en','fr']
JINJA_ENVIRONMENT = {
'extensions': ['jinja2.ext.i18n', 'jinja2.ext.debug']
}