mdk.fr/pelicanconf.py

50 lines
1.3 KiB
Python
Raw Normal View History

2017-04-04 21:11:23 +00:00
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'Julien Palard'
SITENAME = 'mdk.fr'
SITEURL = 'https://mdk.fr'
PATH = 'content'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'fr'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = 'feeds/%s.atom.xml'
AUTHOR_FEED_RSS = 'feeds/%s.rss.xml'
# Blogroll
# LINKS = (('Pelican', 'http://getpelican.com/'),
# ('Python.org', 'http://python.org/'),
# ('Jinja2', 'http://jinja.pocoo.org/'),
# ('You can modify those links in your config file', '#'),)
# Social widget
SOCIAL = (('twitter', 'https://twitter.com/sizeof'),
('github', 'https://github.com/julienpalard'),
2018-04-28 14:37:34 +00:00
('so', 'https://stackoverflow.com/users/232831/julien-palard'),
2017-04-04 21:11:23 +00:00
)
DEFAULT_PAGINATION = 10
THEME = 'theme'
THEME_STATIC_DIR = 'theme'
ARTICLE_URL = '{category}/{slug}.html'
2018-05-04 20:52:42 +00:00
STATIC_PATHS = ['images', '0x000000/gif', '0x000000/jpg']
2017-04-04 21:11:23 +00:00
ARTICLE_SAVE_AS = '{category}/{slug}.html'
CATEGORY_URL = '{slug}/'
CATEGORY_SAVE_AS = '{slug}/index.html'
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
MARKDOWN = {
'extensions': ['toc', 'markdown.extensions.codehilite']
}