-
Notifications
You must be signed in to change notification settings - Fork 8
/
pelicanconf.py
65 lines (52 loc) · 1.86 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
AUTHOR = u'Example Author Name'
SITENAME = u'Example Void Theme'
SITEURL = 'http://www.example.com'
TIMEZONE = 'America/Chicago'
THEME = 'void/'
TITLE = "Example: What is the title of your site?"
DESCRIPTION = "Lorem Ipsum something about your site and you too probably."
LOGO_IMAGE = '/theme/images/avatar.jpg'
FAVICON_IMAGE = '/theme/images/favicon.ico'
ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
# Static Pages
PAGE_PATHS = ['pages']
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
ABOUT_PAGE_HEADER = 'Hello.'
# DEFAULTS
DEFAULT_LANG = 'en'
DEFAULT_CATEGORY = 'misc'
DEFAULT_DATE = 'fs'
DEFAULT_DATE_FORMAT = '%b %d, %Y'
DEFAULT_PAGINATION = False
# FEEDS
FEED_ALL_ATOM = "feeds/all.atom.xml"
TAG_FEED_ATOM = "feeds/tag/%s.atom.xml"
# PLUGINS
PLUGIN_PATHS = ['pelican-plugins', 'pelican_dynamic']
PLUGINS = ['assets', 'liquid_tags.notebook', 'pelican_dynamic', 'render_math']
CODE_DIR = 'code'
NOTEBOOK_DIR = 'notebooks'
EXTRA_HEADER = open('_nb_header.html').read().decode('utf-8')
STATIC_PATHS = ['images', 'code', 'notebooks', 'extra', 'data']
EXTRA_PATH_METADATA = {'extra/robots.txt': {'path': 'robots.txt'},}
NAVIGATION = [
# You probably want to fill these in so they point to your user pages
{'site': 'twitter', 'user': '', 'url': 'https://twitter.com/...'},
{'site': 'github', 'user': '', 'url': 'https://github.com/...'},
{'site': 'linkedin', 'user': '', 'url': 'http://linkedin.com/in/...'},
{'site': 'google-plus', 'user': '', 'url': 'https://plus.google.com/...'},
{'site': 'spotify', 'user': '', 'url': 'https://open.spotify.com/user/...'},
]
TWITTER_NAME = ""
TWITTER_CARDS = True
FACEBOOK_SHARE = True
HACKER_NEWS_SHARE = True
#### Analytics
GOOGLE_ANALYTICS = ''
DOMAIN = "example.com"
# Other
CACHE_CONTENT = False