-
Notifications
You must be signed in to change notification settings - Fork 162
/
pelicanconf.py
82 lines (68 loc) · 1.92 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
#!/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 = 'waldo/'
HOMEPAGE_IMAGE = '/images/headshot.jpg'
LOGO_IMAGE = '/images/logo.jpg'
FAVICON_IMAGE = '/images/favicon.ico'
COPYRIGHT_START_YEAR = 2013
# 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/{slug}.atom.xml"
TAG_FEED_ATOM = "feeds/tag/{slug}.atom.xml"
NAVBAR_LINKS = [
('About', '/about'),
('Writing', '/blog'),
]
FOOTER_LINKS = [
('Home', '/'),
('About', '/about'),
('Writing', '/blog'),
('Contact', 'mailto:[email protected]?subject=hello%20from%20the%20internet'),
('RSS', FEED_ALL_ATOM),
('Newsletter', 'https://buttondown.email/gjreda'),
('LinkedIn', 'https://linkedin.com/in/gjreda'),
('Github', 'https://github.com/gjreda'),
]
MARKUP = ('md')
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'monthly',
'pages': 'monthly'
}
}
STATIC_PATHS = ['images', 'extra', 'data']
EXTRA_PATH_METADATA = {'extra/robots.txt': {'path': 'robots.txt'},}
# Other
CACHE_CONTENT = False
# Social Sharing
TWITTER_CARDS = True
TWITTER_NAME = "gjreda"