blog/pelicanconf.py

64 lines
1.5 KiB
Python
Raw Normal View History

2019-04-22 11:35:20 +00:00
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
2019-04-22 17:22:17 +00:00
import os
2019-04-22 11:35:20 +00:00
AUTHOR = 'Fabrice Mouhartem'
2019-04-23 18:04:46 +00:00
SITENAME = 'fmouharts blog'
2019-04-22 11:35:20 +00:00
SITEURL = ''
# Theme
THEME = "themes/clean-blog"
2019-04-22 17:51:08 +00:00
HEADER_COLOR='#333333'
2019-04-22 11:35:20 +00:00
COLOR_SCHEME_CSS = 'monokai.css'
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = True
2019-04-22 11:49:29 +00:00
FAVICON='images/lock.png'
2019-04-23 18:04:46 +00:00
JINJA_ENVIRONMENT = {'trim_blocks': True, 'lstrip_blocks': True, 'extensions' : ('jinja2.ext.loopcontrols','jinja2.ext.i18n',),}
2019-04-22 17:22:17 +00:00
## Footer
FOOTER_INCLUDE = 'myfooter.html'
IGNORE_FILES = [FOOTER_INCLUDE]
2019-04-23 14:06:37 +00:00
THEME_TEMPLATES_OVERRIDES = [os.path.dirname(__file__)]
2019-04-23 18:04:46 +00:00
# Plugins
PLUGIN_PATHS = ['./plugins/']
2022-07-25 11:48:48 +00:00
PLUGINS = ['i18n_subsites', 'autopages', ]
2019-04-22 11:35:20 +00:00
2019-04-22 17:22:17 +00:00
# Static paths
2019-04-22 11:35:20 +00:00
PATH = 'content'
2019-04-22 17:22:17 +00:00
STATIC_PATHS = ['images', 'examples',]
2019-04-22 11:35:20 +00:00
TIMEZONE = 'Europe/Paris'
2019-04-23 18:04:46 +00:00
#LANG
2019-04-22 11:35:20 +00:00
DEFAULT_LANG = 'en'
2024-10-19 12:19:08 +00:00
LOCALE = 'en_GB.utf8'
2019-04-24 08:55:59 +00:00
DEFAULT_DATE_FORMAT = '%A, %B %d, %Y'
2019-04-23 18:04:46 +00:00
I18N_SUBSITES = {
2019-04-24 08:55:59 +00:00
'fr': {
'SITENAME': 'Le blog de fmouhart',
'FOOTER_INCLUDE' : 'myfooter-fr.html',
'LOCALE' : 'fr_FR.UTF-8',
'DEFAULT_DATE_FORMAT' : '%A %d %B %Y',
}
}
2019-04-22 11:35:20 +00:00
# Social widget
SOCIAL = ()
DEFAULT_PAGINATION = 10
2019-04-23 08:42:17 +00:00
PAGE_PAGINATION = 5
2019-04-22 11:35:20 +00:00
2019-04-24 19:04:18 +00:00
# Articles URL
ARTICLE_URL = '{category}/{slug}.html'
ARTICLE_SAVE_AS = ARTICLE_URL
CATEGORY_URL = '{slug}/'
CATEGORY_SAVE_AS = '{slug}/index.html'
2022-07-25 11:48:48 +00:00
# autopage
CATEGORY_PAGE_PATH= 'categories'
2019-04-22 11:35:20 +00:00
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
2019-04-24 19:04:18 +00:00