-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
41 lines (34 loc) · 1.13 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
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['assets', 'neighbors','render_math']
AUTHOR = 'A cast of tens'
SITENAME = 'Eddy and Rivas Labs Resource Page'
SITEURL = 'https://eddyrivaslab.github.io'
PATH = 'content'
THEME = "./customized"
DIRECT_TEMPLATES = (('index', 'tags', 'categories', 'archives'))
TIMEZONE = 'America/New_York'
DEFAULT_LANG = 'en'
USE_FOLDER_AS_CATEGORY=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
ARTICLE_PATHS = ['author',]
ARTICLE_URL = 'author/{slug}.html'
ARTICLE_SAVE_AS = 'author/{slug}.html'
PAGE_PATHS = ['pages',]
PAGE_URL = 'pages/{slug}.html'
PAGE_SAVE_AS = 'pages/{slug}.html'
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
# custom Jinja2 filter
def hidden_pages_get_page_with_slug_index(hidden_pages):
for page in hidden_pages:
if page.slug == "index":
return page
JINJA_FILTERS = {
"hidden_pages_get_page_with_slug_index": hidden_pages_get_page_with_slug_index,
}