-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpelicanconf.py
More file actions
158 lines (143 loc) · 4.13 KB
/
Copy pathpelicanconf.py
File metadata and controls
158 lines (143 loc) · 4.13 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
#!/usr/bin/env python
import os
import sys
sys.path.append(".")
from integrantes import INTEGRANTES
from objects.events import (
PAST_EVENTS,
UPCOMING_EVENTS,
CITIES,
YEARS,
CURRENT_YEAR,
EVENTS_TYPES,
EVENTS_COUNTS,
SESSIONS_COUNTS,
ATTENDEES_COUNTS
)
AUTHOR = "Python Chile"
SITENAME = "Comunidad Chilena de Python"
SITESUBTITLE = "Lugar de encuentro de todas las personas entusiastas de Python a lo largo de Chile"
DESCRIPTION = (
"Nuestro objetivo es ser el lugar de encuentro de todos los entusiastas de Python "
"a lo largo del país, fortaleciendo a los miembros de la comunidad para generar un impacto "
"positivo en el desarrollo de Python a nivel nacional y mundial."
)
SITEURL = ""
PATH = "content"
TIMEZONE = "America/Santiago"
DEFAULT_LANG = "es"
THEME = os.path.join(os.path.dirname(__file__), "pycltheme")
# 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
DATE_FORMATS = { "es": "%d-%m-%Y"}
MENUELEMENTS = {
"home": {"title": "Home", "url": "index.html", "children": None},
"blog": {"title": "Blog", "url": "archives.html", "children": None},
"coc": {
"title": "Código de Conducta",
"url": "pages/codigo-de-conducta.html",
"children": None,
},
"organización": {
"title": "Organización",
"children": {
"corporación": {"title": "Corporación", "url": "pages/corporacion.html"},
"coordinación": {"title": "Coordinación", "url": "pages/coordinacion.html"},
}
},
"grupos": {"title": "Grupos", "url": "pages/grupos.html"},
"eventos": {
"title": "Eventos",
"url": "eventos.html",
"children": None,
},
"recursos": {
"title": "Recursos",
"url": "pages/recursos.html",
"children": None,
},
"videos": {
"title": "Videos",
"url": "pages/videos.html",
"children": None,
},
}
# Social widget
PLATAFORMAS = {
"discord": {
"alt": "Discord",
"icon": "fa-discord",
"url": "https://discord.gg/dTHMfJvauS"
},
"telegram": {
"alt": "Telegram",
"icon": "fa-telegram",
"url": "https://t.me/pythonchile"
},
}
REDES = {
"facebook": {
"alt": "Facebook",
"icon": "fa-facebook-f",
"url": "https://www.facebook.com/groups/pythonchiledev/",
},
"twitter": {
"alt": "Twitter",
"icon": "fa-x-twitter",
"url": "https://x.com/pythonchiledev",
},
"instagram": {
"alt": "Instagram",
"icon": "fa-instagram",
"url": "https://instagram.com/pythonchiledev",
},
"github": {
"alt": "Github",
"icon": "fa-github",
"url": "https://github.com/python-chile"
},
"linkedin": {
"alt": "LinkedIn",
"icon": "fa-linkedin",
"url": "https://www.linkedin.com/groups/4929519/",
},
"youtube": {
"alt": "YouTube",
"icon": "fa-youtube",
"url": "https://www.youtube.com/c/PythonChile",
},
"meetup": {
"alt": "Meetup",
"icon": "fa-meetup",
"url": "https://meetup.com/es/pythonchile",
},
}
PLUGINS = ["pelican.plugins.image_process"]
IMAGE_PROCESS = {
"large-photo": {
"type": "responsive-image",
"sizes": (
"(min-width: 1200px) 800px, "
"(min-width: 992px) 650px, "
"(min-width: 768px) 300px, "
"90vw"
),
"srcset": [
("600w", ["scale_in 600 450 True"]),
("800w", ["scale_in 800 600 True"]),
("1600w", ["scale_in 1600 1200 True"]),
],
"default": "800w",
},
}
DEFAULT_PAGINATION = 6
# Source - https://stackoverflow.com/a/53474144
# Posted by Sébastien Lavoie, modified by community. See post 'Timeline' for change history
# Retrieved 2026-08-13, License - CC BY-SA 4.0
DIRECT_TEMPLATES = ['index', 'categories', 'authors', 'archives', 'eventos']
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True