-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpelicanconf.py
238 lines (207 loc) · 7.57 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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
import os
import sys
from collections import OrderedDict
from pelican.plugins import sitemap, liquid_tags
sys.path.append(os.curdir)
from pugpb import members_of
AUTHOR = "PUG-PB"
SITENAME = "PUG-PB"
SITEURL = "https://pb.python.org.br"
PATH = "content"
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
META_DESCRIPTION = """O PUG-PB é uma comunidade de usuários (profissionais e
amadores) da linguagem Python, onde prezamos pela troca de
conhecimento, respeito mútuo e diversidade (tanto de
opinião quanto de tecnologias)."""
META_KEYWORDS = ["pug-pb", "python", "programação", "paraiba", "desenvolvimento"]
TIMEZONE = "America/Recife"
THEME = "./themes/malt"
MALT_BASE_COLOR = "red"
SITE_LOGO = "images/logo/pug_logo.png"
SITE_LOGO_MOBILE = "images/logo/pug_logo.png"
STATIC_PATHS = ["images", "pdfs", "extra"]
EXTRA_PATH_METADATA = {
"extra/CNAME": {"path": "CNAME"},
"extra/favicon.ico": {"path": "favicon.ico"},
}
WELCOME_TITLE = "Seja bem vindo ao {}!".format(SITENAME)
WELCOME_TEXT = "Grupo de usuários da linguagem Python na Paraíba."
SITE_BACKGROUND_IMAGE = "images/banners/Lajedo_pai_mateus_paraiba.jpg"
FOOTER_ABOUT = META_DESCRIPTION
DEFAULT_LANG = "pt_BR"
LOCALE = ("pt_BR",)
ARTICLE_URL = "blog/{slug}"
ARTICLE_SAVE_AS = "blog/{slug}/index.html"
PAGE_URL = "{slug}"
PAGE_SAVE_AS = "{slug}.html"
CATEGORY_URL = "blog/categorias/{slug}"
CATEGORY_SAVE_AS = "blog/categorias/{slug}/index.html"
CATEGORIES_URL = "blog/categorias"
CATEGORIES_SAVE_AS = "blog/categorias/index.html"
TAG_URL = "blog/tags/{slug}"
TAG_SAVE_AS = "blog/tags/{slug}/index.html"
TAGS_URL = "blog/tags"
TAGS_SAVE_AS = "blog/tags/index.html"
AUTHOR_URL = "blog/autores/{slug}"
AUTHOR_SAVE_AS = "blog/autores/{slug}/index.html"
AUTHORS_URL = "blog/autores"
AUTHORS_SAVE_AS = "blog/autores/index.html"
INDEX_SAVE_AS = "blog/index.html"
PAGINATION_PATTERNS = (
(1, "{base_name}/", "{base_name}/index.html"),
(2, "{base_name}/page/{number}/", "{base_name}/page/{number}/index.html"),
)
TRANSLATION_FEED_ATOM = None
TRANSLATION_FEED_RSS = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
CATEGORY_FEED_ATOM = None
CATEGORY_FEED_RSS = None
DEFAULT_PAGINATION = False
# PLUGIN_PATHS = ["./.plugins"]
PLUGINS = [sitemap, liquid_tags]
# RESPONSIVE_IMAGES = True
# PYGMENTS_STYLE = "perldoc"
# PYGMENTS_STYLE = "friendly"
SITEMAP = {
"format": "xml",
"priorities": {"articles": 0.8, "indexes": 0.2, "pages": 0.7},
"changefreqs": {"articles": "daily", "indexes": "daily", "pages": "monthly"},
}
GITHUB_REPO = "http://github.com/pug-pb/pug-pb-site"
GITHUB_BRANCH = "master"
# TWITTER = "@__pugpb__"
OPEN_GRAPH_IMAGE = "/images/logo/pug-logo.png"
# Navbar Links
NAVBAR_HOME_LINKS = [
{"title": "Eventos", "href": "eventos.html",},
{"title": "Comunidade", "href": "comunidade.html",},
{"title": "Membros", "href": "membros.html",},
{"title": "Blog", "href": "blog/index.html",},
]
NAVBAR_BLOG_LINKS = [
{"title": "Categorias", "href": "blog/categorias/index.html",},
{"title": "Autores", "href": "blog/autores/index.html",},
{"title": "Tags", "href": "blog/tags/index.html",},
]
SOCIAL_LINKS = (
{"href": "https://t.me/pugpb", "icon": "fa-paper-plane", "text": "Telegram",},
{"href": "https://github.com/pug-pb", "icon": "fa-github", "text": "GitHub",},
{"href": "https://twitter.com/pug_pb", "icon": "fa-twitter", "text": "Twitter",},
{"href": "https://www.instagram.com/pug.pb/", "icon": "fa-instagram", "text": "Instagram",},
{
"href": "https://www.youtube.com/@pug-pb",
"icon": "fa-youtube", "text": "Youtube",
},
{
"href": "https://www.facebook.com/pug-pb",
"icon": "fa-facebook",
"text": "Facebook",
},
{
"href": "https://groups.google.com/forum/#!forum/pug-pb",
"icon": "fa-envelope",
"text": "Mailing List",
},
{
"href": "https://bolha.us/@pugpb",
"icon": "fa-user-circle",
"text": "Mastodon",
}
)
MEMBROS = OrderedDict(members_of(["pug-pb"]))
MALT_HOME = [
{
"color": "red lighten-5",
"title": "O que Fazemos?",
"items": [
{
"title": "Eventos",
"icon": "fa-calendar-day",
"text": "Os eventos que a comunidade organizou e os que "
"estão programados pra acontecer. Informações, inscrições, "
"submissões de palestras.",
"buttons": [{"text": "Mais detalhes", "href": "eventos.html",},],
},
{
"title": "Comunidade",
"icon": "fa-comments",
"text": "A comunidade do PUG-PB se comunica através da lista "
"de email e do grupo no Telegram, mas frequentemente "
"são promovidos encontros diversos, como reuniões de "
"planejamento, meetups e oficinas. ",
"buttons": [{"text": "Saiba Mais", "href": "comunidade.html",},],
},
{
"title": "Membros",
"icon": "fa-users",
"text": "A comunidade do PUG-PB organiza eventos, mantém a "
"comunicação ativa, divulga eventos, mantém redes "
"sociais etc. ",
"buttons": [{"text": "Conheça", "href": "membros.html",},],
},
],
},
]
EVENTO_PROGRAMADO = [
{
"color": "red lighten-5",
"title": "Próximo Evento",
"items": [
{
"title": "JamPython Day",
"icon": "fa-calendar-check",
"text": "João Pessoa Python Day 2022",
"date": "26/11/2022 14:00h",
"link": "/blog/meetup-virtual-jampython-day-1/",
# "talks": "https://bit.ly/pugpb-talks",
# "media": [
# "images/mv_2020_04_crop.jpg",
# "images/mv_2020_03_crop.jpg",
# "images/mv_2020_01_crop.jpg",
# "images/mv_2020_02_crop.jpg",
# ],
},
],
},
]
EVENTOS_ANTERIORES = [
{
"color": "red lighten-5",
"title": "Eventos Anteriores",
"items": [
{
"title": "MeetUp Virtual 2020",
"icon": "far fa-fire",
"text": "Meetup virtual 2020, com a presença de "
"Eduardo Mendes, entre outros ",
# "buttons": [{"text": "Mais detalhes", "href": "#",},],
},
{
"title": "Python Nordeste 2018",
"icon": "far fa-sun",
"text": "Conferência da comunidade Python Nordeste do ano "
"de 2018, em Campina Grande-PB ",
# "buttons": [{"text": "Mais detalhes", "href": "#",},],
},
{
"title": "MeetUp PUG-PB Guarabira",
"icon": "fa-book-open",
"text": "Conferência da comunidade no Instituto Federal da "
"cidade de Guarabira-PB, em 04/2018 ",
# "buttons": [{"text": "Mais detalhes", "href": "#",},],
},
{
"title": "MeetUp PUG-PB Rio Tinto",
"icon": "fa-university",
"text": "Conferência da comunidade no Campus da UFPB da cidade "
"de Rio Tinto-PB, em 03/2018 ",
# "buttons": [{"text": "Mais detalhes", "href": "#",},],
},
],
},
]
from themes.malt.functions import *