#!/usr/bin/env python # -*- coding: utf-8 -*- # AUTHOR = u'Chimrod' SITENAME = u'Chimrod' SITEURL = '//localhost:8000' TIMEZONE = 'Europe/Paris' DEFAULT_LANG = u'fr' # Blogroll #LINKS = (('Pelican', 'http://docs.notmyidea.org/alexis/pelican/'), # ('Python.org', 'http://python.org'), # ('Jinja2', 'http://jinja.pocoo.org'), # ('You can modify those links in your config file', '#'),) # Social widget #SOCIAL = (('You can add links in your config file', '#'), # ('Another social link', '#'),) FEED_DOMAIN = SITEURL FEED_RSS = 'feed' FEED_ATOM = 'feeds/atom.xml' FEED_MAX_ITEMS=5 TAG_FEED_RSS = 'feeds/{slug}.xml' TAG_FEED_ATOM = 'feeds/{slug}.atom.xml' CATEGORY_FEED_RSS = 'feeds/{slug}.rss.xml' DEFAULT_PAGINATION = FEED_MAX_ITEMS ARTICLE_URL = u'{date:%Y}/{date:%m}/{slug}/' ARTICLE_SAVE_AS = u'{date:%Y}/{date:%m}/{slug}/index.html' STATIC_SAVE_AS=u'{path}' THEME= 'theme/Flex' PYGMENTS_STYLE = "monokai" SITELOGO= '/images/profile.png' SITETITLE= 'Chimrod' CUSTOM_CSS='theme/custom.css' MAIN_MENU=True LINKS= ( ("git","http://git.chimrod.com") , ) HOME_HIDE_TAGS=False I18N_TEMPLATES_LANG = "fr_FR" LOCALE="fr_FR" TYPOGRIFY = False STATIC_PATHS = \ ( 'images' , 'extras' , 'pages' ) EXTRA_PATH_METADATA = \ { 'extras/robots.txt': {'path': 'robots.txt'} , 'extras/htaccess': {'path': '.htaccess' } , 'extras/custom.css': {'path': 'theme/custom.css'} } PLUGIN_PATHS = ['plugins'] PLUGINS = \ ( 'related_posts' , 'typogrify' , 'i18n_subsites' , 'render_math' ) RELATED_POSTS_IGNORE_TAGS = ["Libre"] SUMMARY_MAX_LENGTH=100 DOCUTILS_SETTINGS = \ { "footnote_references":'superscript' , 'strip_comments': 'True' } JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']} # Les sous-sites ne sont pas activés, il faudrait flaguer l'intégralité des # articles avec le tag `lang` car ils sont actuellement dupliqués #I18N_SUBSITES = \ # { 'en' : # # On référence le thème dans le répertoire parent # { 'CUSTOM_CSS':'../theme/custom.css' # } # }