-
Notifications
You must be signed in to change notification settings - Fork 1
/
pelicanconf.py
79 lines (64 loc) · 2.08 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'firemark'
SITENAME = 'Hackerspace Silesia'
SITEURL = ''
PATH = 'content'
THEME = 'Flex'
TIMEZONE = 'Europe/Warsaw'
PAGE_ORDER_BY = 'date'
DEFAULT_LANG = 'pl'
SITELOGO = '/images/logo.png'
FAVICON = '/images/favicon.ico'
PAGE_URL = '{slug}/'
PAGE_SAVE_AS = '{slug}/index.html'
PAGE_LANG_URL = '{slug}-{lang}/'
PAGE_LANG_SAVE_AS = '{slug}-{lang}/index.html'
ARTICLE_URL = '{slug}/'
ARTICLE_SAVE_AS = '{slug}/index.html'
ARTICLE_LANG_URL = '{slug}-{lang}/'
ARTICLE_LANG_SAVE_AS = '{slug}-{lang}/index.html'
COPYRIGHT_NAME = '''
<a href="https://hs-silesia.pl">hs-silesia</a> team 2021.
Hosted on <a href="http://www.vultr.com/?ref=6819909"><img alt="vultr" src="/images/vultr.png" /></a>
'''
HOME_HIDE_TAGS = True
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = "feeds/atom.xml"
FEED_ALL_RSS = "feeds/rss.xml"
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
PLUGINS = ['jinja2content']
JINJA2CONTENT_TEMPLATES = ['../templates']
STATIC_PATHS = ['extra', 'images']
LINKS = (
('HS wiki', 'https://wiki.hs-silesia.pl/'),
('Planowane spotkania', 'https://wiki.hs-silesia.pl/wiki/Planowane_spotkania'),
('Finanse', 'http://finanse.hs-silesia.pl/'),
('E-mail do zarządu', 'mailto:[email protected]'),
('Grupa dyskusyjna', 'https://lists.hs-silesia.pl/archives/open/'),
)
SOCIAL = (
('facebook', 'https://www.facebook.com/HackerspaceSilesia'),
('twitter', 'https://twitter.com/hs_silesia'),
('github', 'https://github.com/hackerspace-silesia'),
('envelope', 'mailto:[email protected]'),
)
DEFAULT_PAGINATION = False
MARKDOWN = {
'extension_configs': {
'markdown.extensions.toc': {},
'markdown.extensions.admonition': {},
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
},
'output_format': 'html5',
}
CUSTOM_CSS = 'extra/custom.css'
EXTRA_PATH_METADATA = {
'images/favicon.ico': {'path': 'favicon.ico'},
}