forked from pythonbrasil/wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbaseconf.py
80 lines (68 loc) · 1.79 KB
/
baseconf.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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
### Base settings
SITEURL = ''
DEFAULT_LANG = u'pt'
DEFAULT_PAGINATION = False
TIMEZONE = 'America/Sao_Paulo'
SUMMARY_MAX_LENGTH = 35
### URL and Page generation settings
ARTICLE_URL = 'vagas/{slug}'
ARTICLE_SAVE_AS = 'vagas/{slug}/index.html'
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}/index.html'
CATEGORIES_URL = 'vagas/categorias'
CATEGORIES_SAVE_AS = 'vagas/categorias/index.html'
CATEGORY_URL = 'vagas/categorias/{slug}'
CATEGORY_SAVE_AS = 'vagas/categorias/{slug}/index.html'
TAG_URL = 'vagas/tags/{slug}'
TAG_SAVE_AS = 'vagas/tags/{slug}/index.html'
TAGS_URL = 'vagas/tags'
TAGS_SAVE_AS = 'vagas/tags/index.html'
AUTHOR_URL = 'vagas/autores/{slug}'
AUTHOR_SAVE_AS = 'vagas/autores/{slug}/index.html'
AUTHORS_URL = 'vagas/autores'
AUTHORS_SAVE_AS = 'vagas/autores/index.html'
INDEX_SAVE_AS = "vagas/index.html"
PAGINATION_PATTERNS = (
(1, '{base_name}/', '{base_name}/index.html'),
(2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
)
### Feed settings
FEED_ALL_ATOM = None
FEED_ALL_RSS = None
TRANSLATION_FEED_ATOM = None
TRANSLATION_FEED_RSS = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
CATEGORY_FEED_ATOM = None
CATEGORY_FEED_RSS = None
## Plugins
PLUGIN_PATHS = ['./.plugins']
PLUGINS = [
'sitemap',
'welcome-helpers',
'bootstrapify',
'pelican_alias',
'replacer',
]
REPLACES = (
(u'<table', u'<div class="table-wrapper"><table'),
(u'</table>', u'</table></div>'),
)
# Plugins settings
RESPONSIVE_IMAGES = True
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.8,
'indexes': 0.2,
'pages': 0.7
},
'changefreqs': {
'articles': 'daily',
'indexes': 'daily',
'pages': 'daily'
},
}