-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpelicanconf.py
117 lines (103 loc) · 3.53 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'Grupo de Usuários Python do Paraná'
SITENAME = 'GruPy-PR'
SITEURL = 'http://localhost:8000'
PATH = 'content'
TIMEZONE = 'America/Sao_Paulo'
LOCALE = 'pt_BR.UTF-8'
DEFAULT_LANG = 'pt'
# 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
# Blogroll
LINKS = (
('GruPy-PR no Telegram', 'https://t.me/python_pr'),
('GruPy-PR no MeetUp', 'http://www.meetup.com/pt/GruPy-PR/'),
('GruPy-PR no Google Groups',
'https://groups.google.com/forum/#!forum/grupy-pr'),
('Grupy-PR no Github', 'https://github.com/grupypr'),
('PythonBrasil', 'http://www.pythonbrasil.com.br/'),
)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
STATIC_PATHS = ['images', 'extra/favicon.ico', 'extra/robots.txt']
EXTRA_PATH_METADATA = {
'extra/robots.txt': {'path': 'robots.txt'},
'extra/favicon.ico': {'path': 'favicon.ico'},
}
ARTICLE_URL = '{date:%Y}/{slug}.html'
ARTICLE_SAVE_AS = '{date:%Y}/{slug}.html'
DEFAULT_DATE_FORMAT = ('%d de %B de %Y')
# THEME CONFIGS
THEME = 'themes/medius'
DEFAULT_COVER = 'https://placeimg.com/1920/800/nature'
DEFAULT_PROFILE_IMG = '/images/thumbnail/profile.png'
DEFAULT_CATEGORY_THUMB = '/images/thumbnail/grupypr-thumb.png'
DISPLAY_CATEGORIES_ON_MENU = False
"""
Para criar um novo autor, altere esse dicionario com as informações do
novo autor:
'Nome do Autor': {
'image': 'full path da imagem do autor. Tamanho recomendado 200x200 (opcional)',
'cover': 'imagem de fundo da página do autor. Tamanho recomendado 1920x800 (opcional)',
'links': (uma lista de tuplas com ("nome do icone", "link")),
}
"""
MEDIUS_AUTHORS = {
'Álvaro Justen': {
'image': 'https://avatars3.githubusercontent.com/u/186126?v=3&s=150',
'links': (
('github-square', 'https://github.com/turicas'),
('twitter-square', 'https://twitter.com/turicas'),
)
},
'Thiago Serafim': {
'image': 'https://avatars3.githubusercontent.com/u/7226969?v=3&s=460',
'links': (
('github-square', 'https://github.com/tserafim'),
('twitter-square', 'https://twitter.com/thiagoserafim'),
)
},
'William Souza': {
'image': 'https://avatars3.githubusercontent.com/u/215986?v=3&s=150',
'links': (
('github-square', 'https://github.com/wiliamsouza'),
)
},
'Ellison Leão': {
'image': 'https://avatars3.githubusercontent.com/u/178641?v=3&s=150',
'links': (
('github-square', 'https://github.com/ellisonleao'),
('twitter-square', 'https://twitter.com/ellisonleao'),
)
},
'Ramiro Batista da Luz': {
'image': 'https://avatars3.githubusercontent.com/u/293174?v=4&s=150',
'links': (
('github-square', 'https://github.com/ramiroluz'),
('twitter-square', 'https://twitter.com/ramiroluz'),
)
},
}
"""
Configurações para página de categorias
formato:
'nome categoria': {
'description': 'uma descrição',
'thumbnail': 'path para imagem thumb. Tamanho 100x100', (opcional)
}
"""
MEDIUS_CATEGORIES = {
'Encontros': {
'description': 'Post-mortem dos nossos encontros',
}
}
PLUGINS = ['plugins.meetup']
MEETUP_API_KEY = '3150302e2be87c4cf19651b7f26'
MEETUP_GROUP_URLNAME = 'grupy-pr'