-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpelicanconf.py
99 lines (79 loc) · 3.47 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
import yaml
AUTHOR = u'The EuroSciPy team <info@euroscipy.org>'
SITENAME = u'EuroSciPy'
SITEURL = ''
TIMEZONE = 'Europe/Berlin'
DEFAULT_LANG = u'en'
# Set the article URL
ARTICLE_URL = 'news/{date:%Y}/{date:%m}/{date:%d}/{slug}/'
ARTICLE_SAVE_AS = 'news/{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html'
# Title menu options
DISPLAY_PAGES_ON_MENU = False
DELETE_OUTPUT_DIRECTORY = True
DIRECT_TEMPLATES = []
THEME = os.path.join(os.getcwd(), "theme", "beevibrant")
EXTRA_TEMPLATES_PATH = os.path.join(THEME, "templates")
THEME_STATIC_DIR = 'theme_2020'
ASSET_URL = THEME_STATIC_DIR
TAGS_SAVE_AS = ''
TAG_SAVE_AS = ''
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
DEFAULT_PAGINATION = 5
PATH = 'content'
STATIC_URL = '../static'
STATIC_PATHS = ['static', 'extra']
ARTICLE_EXCLUDES = STATIC_PATHS
METADATA = os.path.join(PATH, 'metadata')
EXTRA_PATH_METADATA = {
# 'extra/CNAME': {'path': 'CNAME'},
'extra/index.html': {'path': 'index.html'},
}
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
'markdown.extensions.toc': {},
},
'output_format': 'html5',
}
PLUGIN_PATHS = ['plugins']
PLUGINS = [
'assets',
# 'md-metayaml',
# 'sitemap',
]
TYPOGRIFY = True
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
TWITTER_FOLLOW_URL = 'https://twitter.com/intent/follow?original_referer=https%3A%2F%2Fwww.euroscipy.org%2F2019%2F&ref_src=twsrc%5Etfw®ion=follow_link&screen_name=euroscipy&tw_p=followbutton'
TELEGRAM_URL = 'https://t.me/euroscipy'
SPECTRUM_URL = 'https://spectrum.chat/euroscipy'
INFO_MAIL_URL = 'mailto:info@euroscipy.org'
CURRENT_EDITION = '2024'
EVENT = {}
EVENT['euroscipy_2020'] = yaml.safe_load(open(os.path.join(METADATA, '2020', 'event.yml')))
EVENT['euroscipy_2022'] = yaml.safe_load(open(os.path.join(METADATA, '2022', 'event.yml')))
EVENT['euroscipy_2023'] = yaml.safe_load(open(os.path.join(METADATA, '2023', 'event.yml')))
EVENT['euroscipy_2024'] = yaml.safe_load(open(os.path.join(METADATA, '2024', 'event.yml')))
SUBMENU = {}
SUBMENU['euroscipy_2020'] = yaml.safe_load(open(os.path.join(METADATA, '2020', 'menu.yml')))
SUBMENU['euroscipy_2022'] = yaml.safe_load(open(os.path.join(METADATA, '2022', 'menu.yml')))
SUBMENU['euroscipy_2023'] = yaml.safe_load(open(os.path.join(METADATA, '2023', 'menu.yml')))
SUBMENU['euroscipy_2024'] = yaml.safe_load(open(os.path.join(METADATA, '2024', 'menu.yml')))
KEYNOTES = {}
KEYNOTES['euroscipy_2020'] = yaml.safe_load(open(os.path.join(METADATA, '2020', 'keynotes.yml'))) or []
KEYNOTES['euroscipy_2022'] = yaml.safe_load(open(os.path.join(METADATA, '2022', 'keynotes.yml'))) or []
KEYNOTES['euroscipy_2023'] = yaml.safe_load(open(os.path.join(METADATA, '2023', 'keynotes.yml'))) or []
KEYNOTES['euroscipy_2024'] = yaml.safe_load(open(os.path.join(METADATA, '2024', 'keynotes.yml'))) or []
SPONSORS = {}
SPONSORS['euroscipy_2020'] = yaml.safe_load(open(os.path.join(METADATA, '2020', 'sponsors.yml'))) or []
SPONSORS['euroscipy_2022'] = yaml.safe_load(open(os.path.join(METADATA, '2022', 'sponsors.yml'))) or []
SPONSORS['euroscipy_2023'] = yaml.safe_load(open(os.path.join(METADATA, '2023', 'sponsors.yml'))) or []
SPONSORS['euroscipy_2024'] = yaml.safe_load(open(os.path.join(METADATA, '2024', 'sponsors.yml'))) or []