2020-04-29 18:17:21 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*- #
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
AUTHOR = 'theo'
|
|
|
|
SITENAME = 'theo lem'
|
|
|
|
SITEURL = ''
|
|
|
|
|
|
|
|
PATH = 'content'
|
|
|
|
|
|
|
|
TIMEZONE = 'Europe/Paris'
|
|
|
|
|
|
|
|
DEFAULT_LANG = 'fr'
|
|
|
|
|
2020-11-16 19:01:06 +00:00
|
|
|
DEFAULT_ORPHANS = 0
|
2020-11-16 19:16:26 +00:00
|
|
|
PAGINATED_TEMPLATES = {'category': 10}
|
|
|
|
DEFAULT_PAGINATION = 10
|
2020-11-16 19:01:06 +00:00
|
|
|
|
2020-04-29 18:17:21 +00:00
|
|
|
# Feed generation is usually not desired when developing
|
|
|
|
FEED_ALL_ATOM = None
|
|
|
|
CATEGORY_FEED_ATOM = None
|
|
|
|
TRANSLATION_FEED_ATOM = None
|
|
|
|
AUTHOR_FEED_ATOM = None
|
|
|
|
AUTHOR_FEED_RSS = None
|
|
|
|
|
|
|
|
# # 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 = (('You can add links in your config file', '#'),
|
|
|
|
# ('Another social link', '#'),)
|
|
|
|
|
2020-04-30 16:12:44 +00:00
|
|
|
DEFAULT_DATE_FORMAT = '%a %d %B %Y'
|
|
|
|
|
2020-04-29 18:17:21 +00:00
|
|
|
CSS_FILE = 'main.css'
|
|
|
|
THEME = 'themes/theo_lem'
|
|
|
|
|
|
|
|
# Uncomment following line if you want document-relative URLs when developing
|
2020-05-07 16:29:37 +00:00
|
|
|
#RELATIVE_URLS = True
|
2020-11-20 15:35:37 +00:00
|
|
|
|
|
|
|
# Custom Jinja2 filter to get the Index page from Markdown
|
|
|
|
# From https://siongui.github.io/2016/02/19/pelican-generate-index-html-by-rst-or-md/
|
2021-07-28 12:44:55 +00:00
|
|
|
def pages_get_page_with_slug_index(pages):
|
|
|
|
for page in pages:
|
2020-11-20 15:35:37 +00:00
|
|
|
if page.slug == "index":
|
|
|
|
return page
|
|
|
|
|
|
|
|
JINJA_FILTERS = {
|
2021-07-28 12:44:55 +00:00
|
|
|
"pages_get_page_with_slug_index": pages_get_page_with_slug_index,
|
2020-11-20 15:35:37 +00:00
|
|
|
}
|
|
|
|
|