blog-source/pelicanconf.py

50 lines
1.4 KiB
Python
Raw Normal View History

2014-11-24 22:52:53 +01:00
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# Misc Settings
AUTHOR = u'wxcafé'
SITENAME = u'Wxcafé'
SITEURL = '//wxcafe.net'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'fr'
DEFAULT_PAGINATION = 10
2016-12-29 04:44:47 +01:00
THEME="./themes/pelican-clean-blog"
HEADER_COVER = SITEURL + '/theme/cover.png'
COLOR_SCHEME_CSS = 'monokai.css'
2014-11-24 22:52:53 +01:00
# URL settings
2015-09-03 19:58:32 +02:00
ARTICLE_URL = "posts/{slug}/"
2016-12-29 04:44:47 +01:00
ARTICLE_SAVE_AS = "posts/{slug}/index.html"
2014-11-24 22:52:53 +01:00
PAGE_URL = "pages/{slug}/"
PAGE_SAVE_AS = "pages/{slug}/index.html"
CATEGORY_URL = "category/{slug}/"
CATEGORY_SAVE_AS = "category/{slug}/index.html"
2016-12-29 04:44:47 +01:00
# Feeds settings
2014-11-24 22:52:53 +01:00
FEED_RSS = "feeds/feed.rss.xml"
2016-12-29 04:44:47 +01:00
FEED_ATOM = "feeds/feed.atom.xml"
CATEGORY_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
FEED_ALL_ATOM = None
2014-11-24 22:52:53 +01:00
2015-09-03 19:58:32 +02:00
MD_EXTENSIONS = [
2016-12-29 04:44:47 +01:00
'codehilite(linenums=False, guess_lang=True, noclasses=True, pygments_style=monokai)',
'smarty',
2015-09-03 19:58:32 +02:00
'extra']
2014-11-24 22:52:53 +01:00
# Social
SOCIAL = (
2016-12-29 04:44:47 +01:00
('twitter', 'https://twitter.com/wxcafe'),
('github', 'https://github.com/wxcafe'),
('envelope', 'mailto://wxcafe@wxcafe.net'),
('key', 'https://pub.wxcafe.net/wxcafe.asc'),
('map-o', 'https://www.openstreetmap.org/relation/105146'),
('code', 'https://github.com/wxcafe/blog-source'),
)
2014-11-24 22:52:53 +01:00
# Categories on right-side bar but not on top menu
DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_CATEGORIES_ON_BAR = True