/
pelicanconf.py
87 lines (71 loc) · 2.42 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'Data Show'
SITENAME = 'Data Show Notebooks'
SITEDESCRIPTION = 'Data Show makes data visualization notebooks with open data about economics and health topics.'
SITEURL = ''
PATH = 'notebooks'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = 'en'
USE_FOLDER_AS_CATEGORY=False
ARTICLE_URL = '{slug}/'
ARTICLE_SAVE_AS = '{slug}/index.html'
# 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
STATIC_PATHS = [
'static',
'images',
'extra'
]
EXTRA_PATH_METADATA = {
'extra/CNAME': {'path': 'CNAME'},
'extra/robots.txt': {'path': 'robots.txt'},
'extra/android-chrome-192x192.png': {'path': 'android-chrome-192x192.png'},
'extra/android-chrome-512x512.png': {'path': 'android-chrome-512x512.png'},
'extra/apple-touch-icon.png': {'path': 'apple-touch-icon.png'},
'extra/favicon.ico': {'path': 'favicon.ico'},
'extra/favicon-16x16.png': {'path': 'favicon-16x16.png'},
'extra/favicon-32x32.png': {'path': 'favicon-32x32.png'},
'extra/site.webmanifest': {'path': 'site.webmanifest'},
}
# Blogroll
LINKS = ()
# Social widget
SOCIAL = (('newspaper', 'https://www.data-show.com'),
('twitter', 'https://twitter.com/DataShow_'),
('instagram', 'https://www.instagram.com/datashow_'),
('youtube', 'https://www.youtube.com/channel/UC1siUJqeSI3Zoyj02tw1jgA'),
('github', 'https://github.com/data-show'),
('linkedin', 'https://www.linkedin.com/company/data-show-blog'))
DEFAULT_PAGINATION = 10
MARKUP = ('md', 'ipynb')
PLUGIN_PATHS = ['./plugins', './plugins/pelican-plugins']
PLUGINS = ['related_posts', 'neighbors', 'post_stats', 'sitemap', 'ipynb.markup']
THEME = './'
# if you create jupyter files in the content dir, snapshots are saved with the same
# metadata. These need to be ignored.
IGNORE_FILES = ['.ipynb_checkpoints', 'Figures', 'Logo_and_Cover']
# Ipynb
IPYNB_GENERATE_SUMMARY=False
# Github Corner
GITHUB_CORNER_URL = 'https://github.com/data-show/notebooks'
# Sitemap
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly'
},
'exclude': ['tag/', 'category/']
}