-
Notifications
You must be signed in to change notification settings - Fork 10
/
pelicanconf_common.py
82 lines (63 loc) · 1.99 KB
/
pelicanconf_common.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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from datetime import datetime
import sys
import os
import pytz
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
from pelicanconf_flags import *
AUTHOR = "Python España Org"
SITENAME = "PyConES 2022 GRX"
PATH = "content"
THEME = "theme"
PLUGIN_PATHS = ["plugins"]
TIMEZONE = "Europe/Madrid"
DEFAULT_LANG = "es"
DEFAULT_DATE_FORMAT = "%d/%M/%Y"
MARKUP = ("md",)
PLUGINS = ["i18n_subsites", "assets", "events"]
STATIC_PATHS = ["images", "extra/manifest.json"]
JINJA_ENVIRONMENT = {
"extensions": ["jinja2.ext.i18n", "extensions.gphotos.GPhotosExtension"],
}
EVENTS_ICS_FNAME = "calendar.ics"
DIRECT_TEMPLATES = [
"index",
"blog",
"keynoters",
"sponsorship",
"schedule",
"gallery",
"past_editions",
"organizers",
"jobs",
]
MENUITEMS_NAVBAR = {
"La ciudad": {"Granada": "/pages/granada.html"},
"Organización": {"Equipo": "/organizers.html"},
"Código de Conducta": "/pages/code-of-conduct.html",
"Mapa": "/mapa.html",
}
if ENABLED_SPEAKERS:
MENUITEMS_NAVBAR["Ponentes"] = "/keynoters.html"
if ENABLED_SPONSORSHIPS:
MENUITEMS_NAVBAR["Patrocinios"] = "/sponsorship.html"
if ENABLED_FINANCIAL_AID:
MENUITEMS_NAVBAR["Becas"] = "/becas.html"
if ENABLED_TIMETABLE:
MENUITEMS_NAVBAR["Horario"] = "/schedule.html"
if ENABLED_GALLERY:
MENUITEMS_NAVBAR["La ciudad"]["Galería"] = "/gallery.html"
if ENABLED_PAST_EDITIONS:
MENUITEMS_NAVBAR["Organización"]["Ediciones pasadas"] = "/past_editions.html"
if ENABLED_JOBS:
MENUITEMS_NAVBAR["Ofertas de trabajo"] = "/jobs.html"
if ENABLED_BLOG:
MENUITEMS_NAVBAR["Blog"] = "/blog.html"
NAVBAR_STYLE = "is-primary"
THEME_LOGO = "/theme/images/piconesGR_mini.svg"
MAIN_LOGO = "/theme/images/piconesGR_horizontal.svg"
MAIN_LOGO_PNG = "/theme/images/piconesGR_horizontal.png"
FOOTER = "Copyright © Python España & PyConES 2022 Org"
THEME_COLOR = "#0E749CFF"
LAST_UPDATE = datetime.now(pytz.timezone(TIMEZONE)).strftime("%B %d, %Y %A, %H:%M:%S")