summaryrefslogtreecommitdiff
path: root/pelicanconf.py
blob: 461baae94b74e765789ae05ed9ed5ae416e20815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

AUTHOR = u'Chaos Computer Club e.V.'
SITENAME = u'Support-Angebote'
# SITEURL = 'http://localhost:8000'

TIMEZONE = 'Europe/Berlin'

DEFAULT_LANG = u'de'
DISPLAY_PAGES_ON_MENU = True

# 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

DEFAULT_PAGINATION = 10

# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
THEME = u'theme/cccevents/'
MARKDOWN = {
    'extension_configs': {
        'markdown.extensions.codehilite': {'css_class': 'highlight'},
        'markdown.extensions.extra': {},
        'markdown.extensions.meta': {},
        'markdown.extensions.toc': {},
    },
    'output_format': 'html5',
}

PAGE_URL = '{slug}.html'
PAGE_SAVE_AS = '{slug}.html'
PAGE_LANG_URL = '{slug}.{lang}.html'
PAGE_LANG_SAVE_AS = '{slug}.{lang}.html'
PAGE_ORDER_BY = 'sortorder'

PATH = 'content'
PAGE_PATHS = ['pages']

STATIC_PATHS = ['images', 'extra/robots.txt']
PATH_METADATA = '(?P<path>.*)\..*'
EXTRA_PATH_METADATA = {
    'extra/robots.txt': {'path': 'robots.txt'},
}

LOAD_CONTENT_CACHE = False

DELETE_OUTPUT_DIRECTORY = True