-
Notifications
You must be signed in to change notification settings - Fork 4
/
pelicanconf.py
89 lines (71 loc) · 2.38 KB
/
pelicanconf.py
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
AUTHOR = 'NBLUG Board Members'
SITENAME = u'North Bay Linux Users’ Group'
# Default to the devserver address.
SITEURL = os.environ.get('SITEURL', 'http://localhost:8000')
MENUITEMS = (
('News', ''),
('Find Our Meetings', 'locations/'),
('About Us', 'about/'),
('Archives', 'articles/'),
)
TIMEZONE = 'America/Los_Angeles'
DEFAULT_LANG = 'en'
THEME = './theme'
TYPOGRIFY = True
DEFAULT_CATEGORY = 'News'
DEFAULT_PAGINATION = 12
PAGINATION_PATTERNS = (
(1, '{base_name}/', '{base_name}/index.html'),
(2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
)
FILENAME_METADATA = '(?P<date>\d{4}-\d{2}-\d{2}).*'
DELETE_OUTPUT_DIRECTORY = True
DIRECT_TEMPLATES = ('index', 'archives')
# Save article pages to subdirectories based on publication year.
ARTICLE_URL = 'articles/{date:%Y}/{slug}.html'
ARTICLE_SAVE_AS = 'articles/{date:%Y}/{slug}.html'
# Pages get top-level URLs.
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
# Enable yearly archives and an index page for them.
ARCHIVES_URL = 'articles/'
ARCHIVES_SAVE_AS = 'articles/index.html'
YEAR_ARCHIVE_SAVE_AS = 'articles/{date:%Y}/index.html'
YEAR_ARCHIVE_URL = 'articles/{date:%Y}/'
# Disable page generation for authors and tags. If you enable this stuff
# you'll also need to update the templates to include links to these pages.
TAG_SAVE_AS = ''
TAGS_SAVE_AS = ''
AUTHOR_SAVE_AS = ''
AUTHORS_SAVE_AS = ''
CATEGORY_SAVE_AS = ''
# Enable RSS for backwards compatibility (a redirect at the old location of
# /node/feed is necessary).
FEED_ALL_RSS = 'feeds/all.rss'
FEED_ALL_ATOM = 'feeds/all.atom' # Redirected from /atom/feed
FEED_ALL_ICALENDAR = 'feeds/all.ics'
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
PLUGIN_PATHS = ['./plugins']
PLUGINS = ['drupal_urls', 'event_calendar']
READERS = {
# Disable processing of HTML files so that they can be used as static resources.
'html': None,
}
STATIC_PATHS = [
'images',
'presentations',
'static/htaccess',
'static/favicon.ico',
'static/robots.txt',
'static/humans.txt',
]
EXTRA_PATH_METADATA = {
'static/robots.txt': {'path': 'robots.txt'},
'static/humans.txt': {'path': 'humans.txt'},
'static/htaccess': {'path': '.htaccess'},
'static/favicon.ico': {'path': 'favicon.ico'},
}