forked from pythonclub/pythonclub.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
101 lines (78 loc) · 2.25 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
BASE = os.path.dirname(__file__)
AUTHOR = u'PythonClub'
AUTHOR_EMAIL = u'[email protected]'
SITENAME = u'PythonClub'
SITEURL = 'http://pythonclub.com.br'
SITELOGO = 'http://res.cloudinary.com/diu8g9l0s/image/upload/v1400201393/pythonclub/logo_275x130.png'
GITHUB_URL = 'https://github.com/pythonclub/pythonclub.github.io'
DISQUS_SITENAME = 'pythonclub'
GOOGLE_ANALYTICS = 'UA-50935105-1'
FACEBOOK_APPID = '1487080281503641'
TIMEZONE = 'America/Sao_Paulo'
DEFAULT_LANG = u'pt'
DEFAULT_PAGINATION = 10
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
# Blogroll
MENUITEMS = (
('Arquivo', 'archives.html'),
('Quem Somos', 'pages/about.html'),
# ('Autores', 'authors.html'),
# ('Categorias', 'categories.html'),
# ('Tags', 'tags.html'),
)
TEMPLATE_PAGES = {
os.path.join(BASE, 'theme/templates/search.html'): os.path.join(BASE, 'output/pages/search.html')
}
# Social widget
SOCIAL = (
('github', 'https://github.com/pythonclub/pythonclub.github.io'),
('rss', 'feeds/all.atom.xml'),
)
STATIC_PATHS = ['images', 'extras/CNAME', 'extras/robots.txt']
EXTRA_PATH_METADATA = {
'extras/CNAME': {'path': 'CNAME'},
'extras/robots.txt': {'path': 'robots.txt'}
}
# Plugins
PLUGIN_PATHS = [
'pelican-plugins',
'custom-plugins'
]
PLUGINS = [
'gravatar',
'sitemap',
'pelican_youtube', # funciona somente com arquivos rst
'pelican_vimeo', # funciona somente com arquivos rst
'json_articles',
'gzip_cache' # deve ser o ultimo plugin
# 'pdf', # funciona somente com arquivos rst
]
RANDOM_ARTICLES = 10
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.8,
'indexes': 0.5,
'pages': 0.3
},
'changefreqs': {
'articles': 'daily',
'indexes': 'daily',
'pages': 'monthly'
}
}
# Theme
THEME = 'theme'
# Theme Pure config
PROFILE_IMAGE_URL = "http://res.cloudinary.com/diu8g9l0s/image/upload/v1399566411/fundo_python_a6iqip.png"
# Uncomment following line if you want document-relative URLs when developing
RELATIVE_URLS = True
# Geracao de PDF
# PDF_GENERATOR = True