-
Notifications
You must be signed in to change notification settings - Fork 0
/
pelicanconf.py
95 lines (75 loc) · 2.32 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
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'PyConAmazônia'
SITENAME = u'PyCon Amazônia 2019'
SITEURL = '127.0.0.1'
SITE_DESCRIPTION = "PyCon Amazônia 2019"
PATH = 'content'
TIMEZONE = 'America/Porto_Velho'
THEME = "./theme"
DEFAULT_LANG = u'pt'
# URL mapping
ARTICLE_URL = 'noticias/{slug}'
ARTICLE_SAVE_AS = 'noticias/{slug}/index.html'
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}.html'
CATEGORIES_URL = 'noticias/categorias'
CATEGORIES_SAVE_AS = 'noticias/categorias/index.html'
CATEGORY_URL = 'noticias/categorias/{slug}'
CATEGORY_SAVE_AS = 'noticias/categorias/{slug}/index.html'
TAG_URL = 'noticias/tags/{slug}'
TAG_SAVE_AS = 'noticias/tags/{slug}/index.html'
TAGS_URL = 'noticias/tags'
TAGS_SAVE_AS = 'noticias/tags/index.html'
AUTHOR_URL = 'noticias/autores/{slug}'
AUTHOR_SAVE_AS = 'noticias/autores/{slug}/index.html'
AUTHORS_URL = 'noticias/autores'
AUTHORS_SAVE_AS = 'noticias/autores/index.html'
INDEX_SAVE_AS = "noticias/index.html"
PAGINATION_PATTERNS = (
(1, '{base_name}/', '{base_name}/index.html'),
(2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
)
# Feed generation is usually not desired when developing
TRANSLATION_FEED_ATOM = None
TRANSLATION_FEED_RSS = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
CATEGORY_FEED_ATOM = None
CATEGORY_FEED_RSS = None
STATIC_PATHS = ['images', 'extra/CNAME']
EXTRA_PATH_METADATA = {'extra/CNAME': {'path': 'CNAME'}, }
# Plugins
PLUGIN_PATHS = ['./.plugins']
PLUGINS = [
'better_figures_and_images',
'sitemap',
'i18n_subsites',
]
RESPONSIVE_IMAGES = True
PYGMENTS_STYLE = "perldoc"
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.8,
'indexes': 0.2,
'pages': 0.7
},
'changefreqs': {
'articles': 'daily',
'indexes': 'daily',
'pages': 'monthly'
},
}
# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
('Jinja2', 'http://jinja.pocoo.org/'),
('You can modify those links in your config file', '#'),)
# Social widget
SOCIAL = (('You can add links in your config file', '#'),
('Another social link', '#'),)
DEFAULT_PAGINATION = 10
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True