mdk.fr/pelicanconf.py

51 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
2019-05-06 21:06:35 +00:00
AUTHOR = "Julien Palard"
SITENAME = "mdk.fr"
SITEURL = "https://mdk.fr"
2017-04-04 21:11:23 +00:00
2019-05-06 21:06:35 +00:00
PATH = "content"
2017-04-04 21:11:23 +00:00
2019-05-06 21:06:35 +00:00
TIMEZONE = "Europe/Paris"
2017-04-04 21:11:23 +00:00
2019-05-06 21:06:35 +00:00
DEFAULT_LANG = "fr"
2017-04-04 21:11:23 +00:00
# Feed generation is usually not desired when developing
2019-05-06 21:06:35 +00:00
FEED_ALL_ATOM = "feeds/all.atom.xml"
CATEGORY_FEED_ATOM = "feeds/%s.atom.xml"
2017-04-04 21:11:23 +00:00
TRANSLATION_FEED_ATOM = None
2019-05-06 21:06:35 +00:00
AUTHOR_FEED_ATOM = "feeds/%s.atom.xml"
AUTHOR_FEED_RSS = "feeds/%s.rss.xml"
2017-04-04 21:11:23 +00:00
# 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
2019-05-06 21:06:35 +00:00
SOCIAL = (
("twitter", "https://twitter.com/sizeof"),
("github", "https://github.com/julienpalard"),
("so", "https://stackoverflow.com/users/232831/julien-palard"),
)
2017-04-04 21:11:23 +00:00
DEFAULT_PAGINATION = 10
2019-05-06 21:06:35 +00:00
THEME = "theme"
THEME_STATIC_DIR = "theme"
ARTICLE_URL = "{category}/{slug}.html"
STATIC_PATHS = ["images", "0x000000/gif", "0x000000/jpg"]
ARTICLE_SAVE_AS = "{category}/{slug}.html"
CATEGORY_URL = "{slug}/"
CATEGORY_SAVE_AS = "{slug}/index.html"
2017-04-04 21:11:23 +00:00
# Uncomment following line if you want document-relative URLs when developing
2019-05-06 21:06:35 +00:00
# RELATIVE_URLS = True
2017-04-04 21:11:23 +00:00
MARKDOWN = {
2019-05-06 21:06:35 +00:00
"extensions": ["toc", "markdown.extensions.codehilite", "markdown.extensions.extra"]
2017-04-04 21:11:23 +00:00
}