summaryrefslogtreecommitdiffstats
path: root/pelicanconf.py
blob: 1fff3b9a0dac97fcbc88159bde2176b8f834dc2b (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

AUTHOR = u'Wolfgang Wiedmeyer'
SITENAME = u"Wolfi's blog"
SITEURL = ''

PATH = 'content'
THEME = 'pelican-themes/pelican-bootstrap3'
BOOTSTRAP_THEME = 'superhero'
CUSTOM_CSS = 'static/custom.css'
FAVICON = 'extras/favicon.ico'
BANNER = 'images/banner.png'

# ignore tipuesearch for now as it's not used
IGNORE_FILES = ['.#*', '*~', 'TODO', 'tipuesearch']

TIMEZONE = 'Europe/Berlin'

DEFAULT_LANG = u'en'

# 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

# A list of extra files to copy from the source to the destination
# static paths will be copied under the same name
STATIC_PATHS = [
    'images',
    'videos',
    'extras'
]
EXTRA_PATH_METADATA = {
    'extras/robots.txt': {'path': 'robots.txt'},
    'extras/custom.css': {'path': 'static/custom.css'}
}

# only publish, if status is published
DEFAULT_METADATA = {
    'status': 'draft',
}

SHOW_ARTICLE_AUTHOR = True
SHOW_DATE_MODIFIED = True

PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}.html'
DISPLAY_PAGES_ON_MENU = False

MENUITEMS = (('About', './about.html'),
             ('Research', './research.html'),
             ('Notes', './notes.html'),)

# activate if there are more articles and tag page fixed
DISPLAY_TAGS_ON_SIDEBAR = False

# 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', '#'),)

DEFAULT_PAGINATION = 10

# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True