-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpelicanconf.py
98 lines (85 loc) · 2.71 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
90
91
92
93
94
95
96
97
98
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
from datetime import date
import os
AUTHOR = 'leotrs'
SITENAME = 'Leo Torres'
SITEURL = ''
SIDEBAR_DIGEST = 'Network Scientist'
CURRENTYEAR = date.today().year
PATH = 'content'
THEME_PATH = '../pelican/pelican-themes/'
THEME = os.path.join(THEME_PATH, 'pelican-bootstrap3')
TIMEZONE = 'America/New_York'
DEFAULT_LANG = 'en'
ARTICLE_PATHS = ['blog']
ARTICLE_URL = 'blog/{slug}.html'
ARTICLE_SAVE_AS = 'blog/{slug}.html'
ARTICLE_EXCLUDES = ['images', 'static']
PAGE_PATHS = ['']
PAGE_URL = '{slug}.html'
PAGE_SAVE_AS = '{slug}.html'
PAGE_EXCLUDES = ['images', 'static']
# Paths containing files that are not to be fed to any template. Relative
# to PATH
STATIC_PATHS = ['images', 'static']
# Social links
SOCIAL = (('email', 'mailto:leo@leotrs.com', 'envelope'),
('github', 'https://www.github.com/leotrs'),
('twitter', 'https://www.twitter.com/_leotrs'),
('scholar', 'https://scholar.google.com/citations?user=xjyYHz0AAAAJ&hl=en', 'check'),
('resume', 'static/resume.pdf', 'file-text'),
)
# 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
# Allow relative urls
RELATIVE_URLS = True
# These templates don't need files that use them: they are rendered directly
DIRECT_TEMPLATES = ['index'] # 'tags', 'authors', '404'
# Keep empty to not generate these page
AUTHOR_SAVE_AS = ''
TAGS_SAVE_AS = ''
# How many articles per page
DEFAULT_PAGINATION = False
# Pelican plugins
PLUGIN_PATHS = ['../pelican/pelican-plugins/']
PLUGINS = ['render_math', 'tag_cloud', 'jinja2content']
JINJA2CONTENT_TEMPLATES = ['static']
# bootstrap3 theme tweaks
CATEGORIES_URL = 'do.html'
TAGS_URL = 'do.html'
DISPLAY_CATEGORIES_ON_SIDEBAR = False
DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_PAGES_ON_MENU = False
DISPLAY_TAGS_INLINE = True
DISPLAY_TAGS_ON_SIDEBAR = False
DISPLAY_CATEGORIES_INLINE = True
DISPLAY_RECENT_POSTS_ON_SIDEBAR = False
HIDE_SIDEBAR = False
#HIDE_SIDEBAR_ON = ('index.html',
# 'am.html',
# 'science.html',
# 'did.html',
# 'read.html',
# 'do.html'
#)
INDEX_SAVE_AS = 'do.html'
BANNER = 'images/banner_small.png'
BANNER_ALL_PAGES = True
BANNER_SUBTITLE = 'Network Scientist'
PYGMENTS_STYLE = 'solarizedlight'
DISPLAY_ARTICLE_INFO_ON_INDEX = True
MENUITEMS = (
# ('Who I am', '/am.html'),
('Home', '/index.html'),
('Projects', '/projects.html'),
('Publications', '/science.html'),
# ('What I did', '/did.html'),
# ('What I read', '/read.html'),
# ('What I do', '/do.html')
)