-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
111 lines (88 loc) · 2.69 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
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Benjamin Akera'
SITENAME = u'Benjamin Akera'
SITETITLE = u'akera.ml | Thoughts'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'America/Los_Angeles'
DEFAULT_DATE_FORMAT = '%B %d, %Y'
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
# Uncomment these to test the feeds
# FEED_DOMAIN = SITEURL
# FEED_ALL_ATOM = 'feeds/all.atom.xml'
# CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
DEFAULT_PAGINATION = 2
PAGINATION_PATTERNS = (
(1, '{url}', '{save_as}'),
(2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
)
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
# My own defaults
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.sane_lists': {},
'markdown.extensions.meta': {},
'markdown.extensions.smarty': {},
},
'output_format': 'html5',
}
PLUGIN_PATHS = ['plugins']
PLUGINS = ['eric_extensions', 'neighbors', 'sitemap', 'yuicompressor','render_math']
THEME = 'theme'
LOGO = 'images/A.png'
DEFAULT_CATEGORY = 'Dross'
DIRECT_TEMPLATES = ['index', 'categories', 'archives', 'tags']
SITEMAP = {
'format': 'xml',
'exclude': ['tags/', 'author/', 'categories/']
}
YUICOMPRESSOR_EXECUTABLE = 'yuicompressor'
ARTICLE_URL = 'scrivings/{slug}/'
ARTICLE_SAVE_AS = 'scrivings/{slug}/index.html'
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
DRAFT_URL = 'drafts/{slug}/'
DRAFT_SAVE_AS = 'drafts/{slug}/index.html'
CATEGORY_URL = 'categories/{slug}/'
CATEGORY_SAVE_AS = 'categories/{slug}/index.html'
AUTHOR_SAVE_AS = ''
TAG_URL = 'tags/{slug}/'
TAG_SAVE_AS = 'tags/{slug}/index.html'
ARCHIVES_SAVE_AS = 'scrivings/index.html'
ARCHIVES_URL = 'scrivings/'
AUTHORS_SAVE_AS = ''
CATEGORIES_SAVE_AS = 'categories/index.html'
CATEGORIES_URL = 'categories'
TAGS_SAVE_AS = 'tags/index.html'
TAGS_URL = 'tags/'
STATIC_PATHS = [
'images',
'static',
'fonts'
]
EXTRA_PATH_METADATA = {
'static/robots.txt': {'path': 'robots.txt'},
'images/favicon.ico': {'path': 'favicon.ico'},
}
# Theme extras
MENUITEMS = [
('Vault', 'scrivings/'),
]
SOCIAL = (
('GitHub', 'https://github.com/ak3ra'),
('Twitter', 'https://www.twitter.com/benjaminakera'),
('LinkedIn', 'https://www.linkedin.com/in/akera-benjamin-2488188a/'),
)
TWITTER_HANDLE = "@benjaminakera"
SITEMETA = "Benjamin Akera, writings on life, the universe and everything"