-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
128 lines (103 loc) · 3.34 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
AUTHOR = 'charles'
SITENAME = 'software-and-stuff'
SITEURL = os.getenv('SITEURL', 'https://checkroth.com')
SITEDESCRIPTION = 'Blog and info'
SITETITLE = 'Charles Henry Heckroth'
SITESUBTITLE = 'My Notes & Blog'
SITELOGO = '/images/me2.jpeg'
FAVICON = ''
BROWSER_COLOR = '#FFFFFF'
THEME = 'Flex'
PATH = 'content'
PYGMENTS_STYLE = 'colorful'
TIMEZONE = 'Japan'
PLUGIN_PATHS = ['plugins', 'plugins/strava-runmap/pelican/plugins']
PLUGINS = ['pelican-toc', 'strava_runmap']
I18N_TEMPLATES_LANG = 'en'
DEFAULT_LANG = 'en'
OG_LOCALE = 'en_US'
LOCALE = 'en_US.UTF-8'
DATE_FORMATS = {
'en': '%B %d, %Y',
}
# 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
USE_FOLDER_AS_CATEGORY = True
# Blogroll
DISABLE_URL_HASH = True
LINKS = (
('Blog', f'{SITEURL}/category/blog.html'),
('Resume', 'https://drive.google.com/file/d/1T80kxtu-rTTqWSHAqkLZAsEqcBnmXwFK/view?usp=sharing'),
)
# Social widget
SOCIAL = (('envelope', 'mailto:[email protected]'),
('github', 'https://www.github.com/Checkroth'),
('linkedin', 'https://www.linkedin.com/in/charlesheckroth'),
('twitter', 'http://www.twitter.com/checkroth'),
('stack-overflow', 'https://stackoverflow.com/users/1037971/charles'),
)
TWITTER_USERNAME = '@checkroth'
# Local site links
HOME_HIDE_TAGS = False
MAIN_MENU = True
MENUITEMS = (('Archives', '/archives.html'),
('Categories', '/categories.html'),
('Tags', '/tags.html'),)
DEFAULT_PAGINATION = 10
CC_LICENSE = {
'name': 'Creative Commons Attribution-ShareAlike',
'version': '4.0',
'slug': 'by-sa'
}
COPYRIGHT_YEAR = 2021
STATIC_PATHS = ['extra', 'images']
EXTRA_PATH_METADATA = {
'extra/custom.css': {'path': 'static/custom.css'},
'extra/CNAME': {'path': 'CNAME'},
}
CUSTOM_CSS = 'static/custom.css'
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
# External Service Mixins
GOOGLE_ANALYTICS = 'UA-136401999-1'
DISQUS_SITENAME = 'checkroth'
GOOGLE_ADSENSE = {
'ca_id': 'ca-pub-3090577057275093',
'page_level_ads': True,
'ads': {
'aside': '7734708573',
'article_bottom': '6895080254',
}
}
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
'markdown.extensions.toc': {},
},
'output_format': 'html5',
}
TOC = {
'TOC_HEADERS' : '^h[1-6]', # What headers should be included in
# the generated toc
# Expected format is a regular expression
'TOC_RUN' : 'true', # Default value for toc generation,
# if it does not evaluate
# to 'true' no toc will be generated
'TOC_INCLUDE_TITLE': 'true', # If 'true' include title in toc
}
STRAVA_RUNMAP = {
"CLIENT_ID": os.getenv("STRAVA_RUNMAP_CLIENT_ID"),
"CLIENT_SECRET": os.getenv("STRAVA_RUNMAP_CLIENT_SECRET"),
"REFRESH_TOKEN": os.getenv("STRAVA_RUNMAP_REFRESH_TOKEN"),
"STRAVA_DRY_RUN": False
}