-
Notifications
You must be signed in to change notification settings - Fork 10
/
pelicanconf.py
67 lines (56 loc) · 1.87 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# If developing on a server at the root level, leave set to empty ''
SITEURL = ''
# If developing in a subdirectory, use leading slash
#SITEURL = '/path/to/subdir'
# Production setting is found in publishconf.py
# Used via 'make publish'
AUTHOR = 'iRODS Consortium'
SITENAME = 'iRODS'
THEME = './themes/irods_theme'
TIMEZONE = 'America/New_York'
DEFAULT_LANG = 'en'
PATH = 'content'
PAGE_PATHS = ['pages']
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}/index.html'
ARTICLE_PATHS = ['posts']
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}/index.html'
# don't produce these pages
AUTHOR_SAVE_AS = ''
AUTHORS_SAVE_AS = ''
TAG_SAVE_AS = ''
TAGS_SAVE_AS = ''
CATEGORY_SAVE_AS = ''
CATEGORIES_SAVE_AS = ''
ARCHIVES_SAVE_AS = ''
# archives
YEAR_ARCHIVE_SAVE_AS = '{date:%Y}/index.html'
MONTH_ARCHIVE_SAVE_AS = '{date:%Y}/{date:%m}/index.html'
DEFAULT_PAGINATION = False
STATIC_PATHS = ['extras','images','uploads']
EXTRA_PATH_METADATA = {
'extras/.htaccess': {'path': '.htaccess'},
'extras/partners.html': {'path': 'partners/index.html'},
'extras/consortium.html': {'path': 'consortium/index.html'},
'extras/faq.html': {'path': 'about/faq/index.html'},
'extras/overview.html': {'path': 'about/overview/index.html'},
'extras/members.html': {'path': 'consortium/members/index.html'},
'extras/members1.html': {'path': 'members/index.html'},
}
# No feeds while in development, requires absolute SITEURL (done in production)
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
CATEGORY_FEED_RSS = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
TAG_FEED_ATOM = None
TAG_FEED_RSS = None
# https://github.com/akhayyat/pelican-page-hierarchy
PLUGIN_PATHS = ['plugins']
PLUGINS = ['page_hierarchy',]
SLUGIFY_SOURCE = 'basename'