-
Notifications
You must be signed in to change notification settings - Fork 3
/
pelicanconf.py
84 lines (68 loc) · 1.89 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
AUTHOR = u'Greg Reda'
SITENAME = u'Greg Reda'
SITEURL = 'http://www.gregreda.com'
TIMEZONE = 'America/Los_Angeles'
DESCRIPTION = u"Greg Reda is a software engineer and data scientist based in San Francisco"
INDEX_PAGE_HEADER = 'Nice to meet you.'
# Variables for theme
THEME = 'newbird/'
LOGO_IMAGE = '/images/logo.jpg'
FAVICON_IMAGE = '/images/favicon.ico'
COPYRIGHT_START_YEAR = 2013
NAV_LINKS = [
{'name': 'Home', 'url': '/'},
{'name': 'Blog', 'url': '/blog/'},
{'name': 'Talks', 'url': '/talks/'},
{'name': 'About', 'url': '/about/'},
]
# URL paths
AUTHOR_SAVE_AS = '' # I'm the only author
AUTHORS_SAVE_AS = ''
ARTICLE_PATHS = ['blog']
ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
PAGE_PATHS = ['pages']
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
# DEFAULTS
USE_FOLDER_AS_CATEGORY = False
DEFAULT_LANG = 'en'
DEFAULT_DATE = 'fs'
DEFAULT_DATE_FORMAT = '%b %d, %Y'
DEFAULT_PAGINATION = False
# FEEDS
FEED_ALL_ATOM = "feeds/all.atom.xml"
CATEGORY_FEED_ATOM = "feeds/category/%s.atom.xml"
TAG_FEED_ATOM = "feeds/tag/%s.atom.xml"
MARKUP = ('md', 'ipynb')
# Plugins
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['pelican-ipynb.liquid', 'sitemap']
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'monthly',
'pages': 'monthly'
}
}
CODE_DIR = 'code'
NOTEBOOK_DIR = 'notebooks'
STATIC_PATHS = ['images', 'code', 'notebooks', 'extra', 'data']
EXTRA_PATH_METADATA = {'extra/robots.txt': {'path': 'robots.txt'},}
#### Analytics
GOOGLE_ANALYTICS = 'UA-34295039-1'
DOMAIN = "gregreda.com"
# Other
CACHE_CONTENT = False
AUTORELOAD_IGNORE_CACHE = True
# Social Sharing
TWITTER_CARDS = True
TWITTER_NAME = "gjreda"