blog/pelicanconf.py

51 lines
1.2 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
AUTHOR = 'Fabrice Mouhartem'
SITENAME = 'fmouharts blog'
SITEURL = ''
# Theme
THEME = "themes/clean-blog"
HEADER_COLOR='#333333'
COLOR_SCHEME_CSS = 'monokai.css'
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = True
FAVICON='images/lock.png'
JINJA_ENVIRONMENT = {'trim_blocks': True, 'lstrip_blocks': True, 'extensions' : ('jinja2.ext.loopcontrols','jinja2.ext.i18n',),}
## Footer
FOOTER_INCLUDE = 'myfooter.html'
IGNORE_FILES = [FOOTER_INCLUDE]
THEME_TEMPLATES_OVERRIDES = [os.path.dirname(__file__)]
# Plugins
PLUGIN_PATHS = ['./plugins/']
PLUGINS = ['i18n_subsites']
# Static paths
PATH = 'content'
STATIC_PATHS = ['images', 'examples',]
TIMEZONE = 'Europe/Paris'
#LANG
DEFAULT_LANG = 'en'
DEFAULT_DATE_FORMAT = '%Y.%m.%d'
I18N_SUBSITES = {
'fr': {
'SITENAME': 'Le blog de fmouhart',
'FOOTER_INCLUDE' : 'myfooter-fr.html',
}
}
# Social widget
SOCIAL = ()
DEFAULT_PAGINATION = 10
PAGE_PAGINATION = 5
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True