-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
99 lines (79 loc) · 2.87 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
AUTHOR = 'CodeClubLu'
SITENAME = 'CoderDojoLu'
SITEURL = 'https://blog.coderdojo.lu'
#PLUGIN_PATHS = ['plugins', '/Users/steve/Desktop/code/pelican-plugins']
#PLUGINS = ['webassets', 'liquid_tags', 'sitemap', 'gravatar', 'pdf', 'render_math']
PLUGINS = ['webassets', 'sitemap', 'avatar', 'pdf', 'render_math']
# Make sure to use the zurb-F5-basic theme in THIS directory, it has emoji and video support
THEME = 'zurb-F5-basic'
PATH = 'content'
TIMEZONE = 'Europe/Luxembourg'
DEFAULT_LANG = 'fr'
DEFAULT_DATE = 'fs'
TYPOGRIFY = True
DELETE_OUTPUT_DIRECTORY = True
PDF_GENERATOR = True
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly'
}
}
# 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
# Blogroll
LINKS = (('CodeClubLu', 'https://codeclub.lu/'),
('CoderDojo Foundation','https://coderdojo.org'),)
# Social widget
# Use this with standard themes
#SOCIAL = (('CoderDojo on TW', 'https://twitter.com/CoderDojoLu'),
# ('CoderDojo on FB','https://www.facebook.com/pages/CoderDojo-Luxembourg/1494650000781128'),
# ('CodeClubLu on TW','https://twitter.com/CodeClubLux'),
# ('CodeClubLu on FB','https://www.facebook.com/codeclub.lu'),)
# This will add a social icon as an addition
SOCIAL = (('twitter-square', 'https://twitter.com/CoderDojoLu','CoderDojo on TW'),
('facebook-square','https://www.facebook.com/pages/CoderDojo-Luxembourg/1494650000781128', 'CoderDojo on FB'),
('twitter-square','https://twitter.com/CodeClubLux', 'CodeClub on TW'),
('facebook-square','https://www.facebook.com/codeclub.lu', 'CodeClub on FB'),)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
TWITTER_USERNAME='CoderDojoLu'
DISPLAY_PAGES_ON_MENU = "True"
DEFAULT_CATEGORY = ('welcome')
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
},
'output_format': 'html5',
}
MARKUP = ('md')
COPYRIGHT = 'Public Domain, 2021'
#LOGOTEXT = 'Hack4Kids'
#LOGOIMAGE = '/images/Logo_Hack4Kids_2014_v3.gif'
#PROFILE_IMAGE_URL = '/images/Logo_Hack4Kids_2014_v3.gif'
#COVER_IMG_URL = '/images/cover.png'
# path-specific metadata
EXTRA_PATH_METADATA = {
'extras/robots.txt': {'path': 'robots.txt'},
'extras/favicon.ico': {'path': 'favicon.ico'},
}
# static paths will be copied without parsing their contents
STATIC_PATHS = [
'images',
'extras/robots.txt',
'extras/favicon.ico',
]